}
];
DWRUtil.removeAllRows(''tabId'');
DWRUtil.addRows(''tabId'', data,cellfuncs,{
rowCreator:function(options) {
var row = document.createElement("tr");
var index = options.rowIndex * 50;
row.setAttribute("id",options.rowData.id);
row.style.collapse = "separate";
row.style.color = "rgb(" + index + ",0,0)";
return row;
},
cellCreator:function(options) {
var td = document.createElement("td");
var index = 255 - (options.rowIndex * 50);
//td.style.backgroundColor = "rgb(" + index + ",255,255)";
td.style.backgroundColor = "menu";
td.style.fontWeight = "bold";
td.style.align = "center";
return td;
}
});
document.getElementById("bt").style.display = "none";
}
待续…………………………………………
/**************************************************************************************/
/**************************************************************************************/
/**************************************************************************************/
4、getText 取得text属性值
DWRUtil.getText(id): 用来获得 option 中的文本
比如:
<select id="select">
<option value="1"> 苹果 </option>
<option value="2" select> 香蕉 </option>
<option value="3"> 鸭梨 </option>
</select>
调用 DWRUtil.getText("select"); 将返回 "香蕉"&nb