对象建立

建立对象的几种方式react 1.经过字面量方式建立:函数 (1)、var o1 = {name:"john"};this (2)、var o2 = new Object({name:"john"});prototype   2.经过构造函数建立3d function M(name){对象    this.name = name;blog }原型 var o3 = new M("jane");io
相关文章
相关标签/搜索