我想对这个字段初始化一下不知道问题出在什么地方
1 回答
ibeautiful
TA贡献1993条经验 获得超6个赞
把contact={}放在constructor外面,这是typescript的写法,不是es6,如:
exports class ContactPage{
contact={}; constructor(){
this.contact.user='';
this.contact.password='';
}
.....
}添加回答
举报
0/150
提交
取消
