JavaScript从初级往高级走系列————prototype

原文博客地址:https://finget.github.io/2018/05/10/javascript-prototype/ 原型 下面内容为转载的,原地址,写的真的很好! 构造函数创建对象 我们先使用构造函数创建一个对象: function Person() { } var person = new Person(); person.name = 'Kevin'; console.log(
相关文章
相关标签/搜索