function Person(name,age){
this.name=name;
this.run=function(){console.log(.....)}
}
var p1 = new Person();
console.log(p1);
p1.run();
js自定义对象
最新推荐文章于 2022-02-15 11:02:17 发布
function Person(name,age){
this.name=name;
this.run=function(){console.log(.....)}
}
var p1 = new Person();
console.log(p1);
p1.run();