Array.prototype.remove = function(val){ var index = this.indexOf(val); if(index !=0){ this.splice(index,1) } } [1,3,4].remove(3)
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8