摘要:
1 Vue.prototype.listenDatas = function(){ 2 for(var attr in this.$data){ 3 this.listenData(this,attr,this.$data); 4 if(Array.isArray(this.$data[attr])){ 5 ... 阅读全文
摘要:
1 function copy(obj){ //浅拷贝 2 var result = {}; 3 for(var attr in obj){ 4 result[attr] = obj[attr]; 5 } 6 return result; 7 } 8 9 func... 阅读全文
摘要:
拷贝继承 类式继承 非构造函数拷贝继承 原型链形式 阅读全文