var panel = Ext.create('Ext.Panel', {
width: 600,
height: 450,
html:html
}
var html = '<table cellpadding="10" style=" width:500px;margin-left:auto; margin-right:auto;margin-top:30px"><tbody>' +
'<tr><td id="dd"></td></tr>' + '<tbody></table>';给td的 id="dd"的赋值
Ext.getCmp('cold').setValue(responseJson.cold);
为何会出现这种错误呢?
Ext.getCmp(
[在此错误处中断] (76 out of range 15)
width: 600,
height: 450,
html:html
}
var html = '<table cellpadding="10" style=" width:500px;margin-left:auto; margin-right:auto;margin-top:30px"><tbody>' +
'<tr><td id="dd"></td></tr>' + '<tbody></table>';给td的 id="dd"的赋值
Ext.getCmp('cold').setValue(responseJson.cold);
为何会出现这种错误呢?
Ext.getCmp(
[在此错误处中断] (76 out of range 15)
height: 450,
id:'cold'
html:html
]
我要是给table中的td的id赋值呢?
给html赋值不能用Ext的getCmp方法 要用dom方法 document.getElementById('dd').innerHTML = responseJson.cold