function nameCard(name,age,phone,email)
{
this.name=name;
this.age=age;
this.phone=new phonelist(homephone,cellphone); 红色部分没有定义
this.email=email;
}
var objMyCard=new nameCard("刘爱玲",39,"0106325415","[email protected]"):
objMyCard.phone.cellphone="12345678921"; var objCard=new nameCard("孙雯",37,"010452458789","[email protected]"):这里应该是分号吧
objCard.phone.cellphone="1452789658";
{
this.name=name;
this.age=age;
this.phone=new phonelist(homephone,cellphone); 红色部分没有定义
this.email=email;
}
var objMyCard=new nameCard("刘爱玲",39,"0106325415","[email protected]"):
objMyCard.phone.cellphone="12345678921"; var objCard=new nameCard("孙雯",37,"010452458789","[email protected]"):这里应该是分号吧
objCard.phone.cellphone="1452789658";
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货