摘要: //工厂模式 // function person(name,age){ // var obj = new Object(); // obj.name = name; // obj.age = age; // obj.showName = function(){ // return this.nam 阅读全文
posted @ 2018-06-10 12:50 国服第一李师师 阅读(112) 评论(1) 推荐(0) 编辑
摘要: Array.prototype.show=function(){ let _this=this; let arrs=[]; _this.forEach((val,index)=>{ let net=_this.indexOf(val,index+1) if(net 1){ arrs.push(val 阅读全文
posted @ 2018-06-10 12:20 国服第一李师师 阅读(1189) 评论(1) 推荐(0) 编辑