導航:首頁 > 編程語言 > 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相關的資料

熱點內容
除了編程還有什麼技術 瀏覽:64
為什麼程序員討厭中文編程 瀏覽:338
數控車床編程g40是什麼意思 瀏覽:782
人們花錢為什麼逐漸網路化 瀏覽:272
如何用編程辦理電信業務 瀏覽:189
數控磨床小圓弧怎麼編程 瀏覽:390
桐鄉編程貓在哪裡 瀏覽:69
同一文件夾存儲大量文件 瀏覽:126
chrome修改js 瀏覽:842
用pad怎麼發word文件怎麼打開 瀏覽:465
哪個網站有幼 瀏覽:299
航班APP哪個最好 瀏覽:590
網路原創如何增強教育活力 瀏覽:527
蘋果第三方打開文件 瀏覽:310
蘋果電腦桌面移除的文件夾怎麼恢復 瀏覽:292
在文件名前添加字元 瀏覽:424
javaexcel導出控制項 瀏覽:484
怎麼樣粉碎文件 瀏覽:798
谷歌網站怎麼更新 瀏覽:934
svn命令行刪除文件夾 瀏覽:277

友情鏈接