Array.prototype.push = function (value) (
this [this.length] = value;
return this.length;
)
if(typeof Array.prototype.push === 'undefined') {
Array.prototype.push = function(value) {
this[this.length] = value;
return this.length;
}
}
歡迎光臨 亞寶論壇 (http://bbs.ahpal.com/) | Powered by Discuz! 7.0.0 |