$(document).ready(function() {
$('#comboboxtree').tree({
/* 發送請求*/
url : 'comboboxtree?',
onLoadSuccess : function(node,data) {
var rootNode = $(this).tree('getRoot');
var children = $(this).tree('getChildren', rootNode.target);
/* 選中第一個子節點 */
$(this).tree("select", children[0].target);
/* 自己寫的傳參獲取數據顯示方法 */
showItemCode(children[0].id);
}
});
});
easyUI動態改變field的屬性
var tt=$('#dg').datagrid('getColumnOption', 'name'); //通過列名獲得此列name爲field的名
tt.hidden=false;