比如var a = [1,2,3];a.prototype.b = function(){console.log(this)};a.b();這樣寫為什么是錯的呢?
js不是隨便一個對象就可以使用prototype嗎?
慕妹3242003
2019-02-28 14:31:55