js prototype 原型相关知识
摘要:
function Create(name){ this.name= name; this.show = function(){ alert(this.name); }; } var obj = new Create('张三'); var obj1 = new Create('李四'); alert(obj1.show == obj.show); //false; ... 阅读全文
posted @ 2017-08-03 15:35 running-fly 阅读(197) 评论(0) 推荐(0) 编辑