導航:首頁 > 編程語言 > js控制easyuitab

js控制easyuitab

發布時間:2025-04-02 20:18:50

『壹』 easyui。。。在左側樹中單擊一個子節點在右邊tab中顯示一個jsp頁面

function addTab(title,path){
funcTab.tabs('add',{
title: title,
fit:true,
href:'${ctx}/login/forword!forwardFramePage.action?_f_url='+path,
iconCls:'icon-save',
closable:true
});
}

$(function(){
menuObj=$('#menu').tree({
url:'${ctx}/pm/user/user!displayAccessedMolesByUser.action',
animate:true,
onClick:function(node){
//alert(node.isLeaf);
var attributes = node.attributes;
if(attributes.isLeaf=="1"){
if(!isExistTab(node.text)){
//alert(attributes.path);
var url = "${ctx}"+attributes.path;
//alert(url);
addTab(node.text,url);
}else{
selectedTab(node.text);
}
}else{

}
},
onDblClick:function(node){
var attributes = node.attributes;
if(attributes.isLeaf=="0"){
$(this).tree('expand',node.target);
}
}
});
});
這個是我以前的測試,給你參考。

閱讀全文

與js控制easyuitab相關的資料

熱點內容
為什麼淘寶app是黑色的 瀏覽:17
如何在cad中把圖形輸出為pdf文件 瀏覽:535
文件夾橫簽 瀏覽:988
extjs5mvc 瀏覽:614
win7如何安裝資料庫 瀏覽:647
informix資料庫倒數卸數 瀏覽:983
華碩p7h55mplus升級 瀏覽:240
servlet調用jsp 瀏覽:481
文件的命名原則有哪些 瀏覽:352
蘋果的文件管理是哪個 瀏覽:387
智能黑板如何給pdf文件做批註 瀏覽:788
哈弗智聯app如何綁定二手車 瀏覽:728
cad文件不多可是異常增大 瀏覽:872
蘋果手機怎樣將音頻文件導入剪映 瀏覽:432
2016秋季飛歌導航升級 瀏覽:151
電腦字元串怎麼編程 瀏覽:381
暴風不能在線觀看視頻文件 瀏覽:267
三國卡可以升級嗎 瀏覽:939
如何篩選出相同數據 瀏覽:311
vbox文件找不到 瀏覽:49

友情鏈接