Use: String.prototype.leftTrim = function() { return this.replace(/^s+/,""); }. In the regex the: ^ means "from the beginning of the string" ...
確定! 回上一頁