todo

js 扩展原来对象功能

up:2014-08-17 11:15:04 edit:2014-08-17 11:15:58 view:956


if (typeof String.prototype.endsWith !== 'function')  { String.prototype.endsWith = function(suffix)  { return this.indexOf(suffix, this.length - suffix.length) !== -1; };  }


TAGS: js 扩展

not in sinaapp