var a = { test : function () { }}function b() { // b 構造函數 this.j=3;}var t = new b(); //T實例b.prototype ; // b 的原型對象b.__proto__; //?有沒有這種寫法t.__proto__; //?有沒有這種寫法t.prototype; //?有沒有這種寫法a.prototype; //?有沒有這種寫法a.__proto__; //?有沒有這種寫法想問一下什么時候用prototype 然后b.__proto__; //?有沒有這種寫法t.__proto__; //?有沒有這種寫法t.prototype; //?有沒有這種寫法a.prototype; //?有沒有這種寫法a.__proto__; //?有沒有這種寫法
JS prototype原型問題
慕尼黑8549860
2018-10-03 09:22:56
