JavaScript從初級往高級走系列————prototype

原文博客地址:https://finget.github.io/2018/05/10/javascript-prototype/ 原型 下面內容爲轉載的,原地址,寫的真的很好! 構造函數創建對象 我們先使用構造函數創建一個對象: function Person() { } var person = new Person(); person.name = 'Kevin'; console.log(
相關文章
相關標籤/搜索