function Person {}Person.prototype.test = function() {} new Person()new Person這兩種寫法有相同的效果,不加括號為什么和前一個效果一樣
js構造對象問題
喵喵時光機
2018-11-20 13:13:26