您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

js中tabs 选项卡的操作

2025/11/9 3:24:30发布39次查看
<!--tabs 选项卡--><h1>tabs 选项卡</h1><!--tabs 选项卡:动态添加选项卡--><p style="margin-bottom:10px"> <a href="#" class="easyui-linkbutton" onclick="addtabb('google','http://www.google.com')">google</a> <a href="#" class="easyui-linkbutton" onclick="addtabb('jquery','http://jquery.com/')">jquery</a> <a href="#" class="easyui-linkbutton" onclick="addtabb('easyui','http://jeasyui.com/')">easyui</a></p> <!--tabs 选项卡定义--> <p id='tabsid' class="easyui-tabs" style="width:500px; height:250px; "> <p title="tab1" style="padding:20px; display:none; "> tab1 </p> <p title="tab2" data-options="closable:true" style="overflow:auto; padding:20px; display:none; "> tab2 </p> <p title="tab3" data-options="iconcls:'icon-reload',closable:true" style="padding:20px; display:none; "> tab3 </p> </p> //动态添加选项卡方法function addtab(title, url) { if ($('#tt').tabs('exists', title)) { $('#tt').tabs('select', title); } else { var content = '<iframe scrolling="auto" frameborder="0" src="'+url+'" style="width:100%; height:100%; "></iframe>'; $('#tt').tabs('add', { title:title, content:content, closable:true } ); } }
以上就是js中tabs 选项卡的操作 的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product