[]聊天消息对话框中new一个HTMLDivElement 报错"Illegal constructor",请问这个该怎么处理?
class ChatLineView extends Laya.Box{
textfield : any = null;
constructor(){
super();
// this.initLineView();
}
public initLineView (data) : void {
this.pos(0,0);
console.log(this.textfield);
if (this.textfield == null) {
var stextfield = new HTMLDivElement();
}
}
textfield : any = null;
constructor(){
super();
// this.initLineView();
}
public initLineView (data) : void {
this.pos(0,0);
console.log(this.textfield);
if (this.textfield == null) {
var stextfield = new HTMLDivElement();
}
}
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
如鹿切慕溪水
赞同来自:
sky_summer
赞同来自: