文章出處
文章列表
if (!String.prototype.startsWith) { Object.defineProperty(String.prototype, 'startsWith', { enumerable: false, configurable: false, writable: false, value: function (searchString, position) { position = position || 0; return this.indexOf(searchString, position) === position; } }); }
//大拿拿了一個這樣的代碼出來,你媽,,嚇死我了,,這不科學啊
而且 this.indexOf(searchString, position) === position;這句感覺有問題
文章列表
全站熱搜