摘要:
在用构造函数 new 出来一个对象时的思考,以及逐步解决理清思路的过程。https://blog.csdn.net/zhouziyu2011/article/details/60143385 new 的分步详情https://blog.csdn.net/qq_28978893/article/det 阅读全文
posted @ 2018-06-26 14:06
天马行空的Max
阅读(123)
评论(0)
推荐(0)
摘要:
function a(){ this.sex=[1,2,3] } function b(){ a.call(this) this.say=function(){ console.log(b.say) } } b.prototype=new a(); var c=new b(); var d=new b(); c.sex.push(4) consol... 阅读全文
posted @ 2018-06-26 10:19
天马行空的Max
阅读(75)
评论(0)
推荐(0)
浙公网安备 33010602011771号