|
var table=$(this.getElementByXid("table1"));
for ( var i = 0, len = rows.length; i < len; i++) {
var d=rows.item(i);
newRow="<tr><td>{0}</td><td>{1}</td><td> <div id='div"+i.toString()+"'></div></td></tr>";
var ss1=justep.String.format(newRow,d.fyt,d.fsum);
table.find("tr:last").after(ss1);
debugger;
var parentNode =document.getElementById("div"+i.toString());//
var flag = {
xid : i.toString(),
parentNode : parentNode,
'class' : "x-checkbox"
};
new CheckBox(flag);
}
控件是可以创建出来的,但是单击无反应?
|
|