js中new操做符都替咱們幹了些啥?

js中new操做符都替咱們幹了些啥? 經過new一個構造函數Person生成實例p1:javascript function Person(name) { this.name = name; this.getName = function() { console.log(this.name) } } let p1 = new Person('Ryan') c
相關文章
相關標籤/搜索