function Hero(person){
this.level=person.level;
this.Attack=person.Attack;
}
var hero=new Hero({
level:1,
Attack:2
});
字面量对象传到Hero中,person是形参,我怎么联系不起来呢?
function Hero(person){
this.level=person.level;
this.Attack=person.Attack;
}
var hero=new Hero({
level:1,
Attack:2
});
字面量对象传到Hero中,person是形参,我怎么联系不起来呢?
1 回答862 阅读✓ 已解决
1 回答1.1k 阅读
2 回答780 阅读
2 回答622 阅读
2 回答610 阅读
1 回答685 阅读
2 回答531 阅读
你想说什么????