EXTJS 3.0 资料 控件之 html 潜入label用法

这是在Extjs 中插入html 控件label!
 html: "<div><label id='howMany'>您共选中了</label><br/></div>"
获取label值:document.getElementById('howMany').innerText
赋值label值:document.getElementById('howMany').innerText = "这是赋值";
document.getElementById('howMany').innerHTML var westPanelForm = new Ext.form.FormPanel({
id: 'westPanelForm',
width: 200,
region: 'west',
border: false,
height: 340,
frame: true,
layout: 'form',
items: [
{
layout: 'column',
items: [{
layout: 'form', width: 260, items: [{
baseCls: 'x-plain',
border: false,
height:30,
html: "<div><label id='howMany'>您共选中了</label><br/></div>"
}]
}]
}, {
layout: 'column',
items: [gridPanelMd]
}
]
});
上一篇:C# String.Format 格式化字符串 数字/时间


下一篇:iOS10 UI教程子视图和父视图UI层次结构和Views继承