用索引Array.prototype.remove = function(index) {
if (index > -1) { this.splice(index, 1); }
};
用值名Array.prototype.remove = function(val) {
var index = this.indexOf(val); if (index > -1) { this.splice(index, 1); }
称呼
Email
网站
暂无评论这儿空空的,快来说两句吧!