jquery easyui 把页面嵌入到tab后,按钮都无效了 你是怎么嵌入的啊 用iframe ,还是load()? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $(function () { $('#treeMenu').tree({ //url: 'Handler1.ashx', url: 'GetMenuHandle.ashx', method: 'get', animate: true, checkbox: false, onClick: function (node) { if (node.attributes && node.attributes.url) {//存在href配置 var exists = $('#centerTab').tabs('exists', node.text); //判断是否存在tab,不存在添加,存在则选取这个tab $('#centerTab').tabs(exists ? 'select' : 'add', exists ? node.text : { title: node.text, href: node.attributes.url, closable: true }); } } }); }); $('#platformtabs').tabs( 'add', { id : 'welcome000000', title : '欢迎', content : '<iframe id="welcome000000" height="100%" width="100%" src="' + url1 + '" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" style="overflow-y:scroll;" allowtransparency="yes"></iframe>', closable : true, selected : true });你在这样加载内容。 content string 这个选项卡面板内容。 href string 一个URL加载远程内容填充选项卡面板。 content 后边加个div字符串 也可以啊 之后配置一个url 那你看看API. 请解释下面Javascript代码的区别: listbox多选的赋值问题 JS初学者菜鸟问题 jquery 下 bind 方法带参数的问题 JS菜鸟的问题,大虾帮帮忙 自助设计 只有这么多分了,哎… javascript 处理疑问?请详细解释一下原因,谢谢。 强烈需要牛人支持下~ jquery $.ajax jsonp 跨域的问题,总是提示passerror 简单问题:自定义卷滚条,实现拖动文本。 KindEditor取文本域的ID名称 原型继承闭包啥的。。我不懂,请教大神。急啊!!!
$(function () {
$('#treeMenu').tree({
//url: 'Handler1.ashx',
url: 'GetMenuHandle.ashx',
method: 'get',
animate: true,
checkbox: false, onClick: function (node) {
if (node.attributes && node.attributes.url) {//存在href配置
var exists = $('#centerTab').tabs('exists', node.text); //判断是否存在tab,不存在添加,存在则选取这个tab
$('#centerTab').tabs(exists ? 'select' : 'add', exists ? node.text : { title: node.text, href: node.attributes.url, closable: true });
}
}
});
});
'add',
{
id : 'welcome000000',
title : '欢迎',
content : '<iframe id="welcome000000" height="100%" width="100%" src="' + url1
+ '" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" style="overflow-y:scroll;" allowtransparency="yes"></iframe>',
closable : true,
selected : true
});你在这样加载内容。
href string 一个URL加载远程内容填充选项卡面板。