解决方案 »
- onbeforeunload和onunload问题处理
- mousedown延时怎么写?
- 对没有ID 的 div 要怎么操作
- 请教 javascript数据解析问题!
- 快速问一个用法
- MultiChosePerson?event=ShowOrgList&showSelect=yes&orgID="+linkPath+"&showoption=showrole
- (在线)提交表单后如何将结果显示在弹出小窗体中?
- 父页面中弹出新页面,在弹出的页面中选择之后,新的页面关闭,选择的值设置给父页面的文本诓
- 看看这个父窗口获取子窗口焦点的值
- 急,高分请教!如何将iframe中超连接的值传到打开它父窗体的页面??
- 前端很弱无奈必须要写,请问:jquery函数传参数的问题
- struts2带验证码的登陆action
没有,就是简单的tab1有个按钮,点击按钮跳到tab2,就行了
就是用了这个,现在我想实现从tab1里的按钮直接跳转到tab2,怎么实现啊
<html>
<head>
<meta charset="UTF-8">
<title>Basic Tabs - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.css">
<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
<h2>Basic Tabs</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click tab strip to swap tab panel content.</div>
</div>
<div style="margin:10px 0;"></div>
<div class="easyui-tabs" id="tt" style="width:700px;height:250px">
<div title="About" style="padding:10px">
<p style="font-size:14px">jQuery EasyUI framework help you build your web page easily.</p>
<ul>
<li>easyui is a collection of user-interface plugin based on jQuery.</li>
<li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
<li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML up.</li>
<li>complete framework for HTML5 web page.</li>
<li>easyui save your time and scales while developing your products.</li>
<li>easyui is very easy but powerful.</li>
</ul>
<p><input type="button" value="switch" onclick="$('#tt').tabs('select', 'My Documents');" /></p>
</div>
<div title="My Documents" style="padding:10px">
<ul class="easyui-tree" data-options="url:'../tabs/tree_data1.json',animate:true"></ul>
</div>
<div title="Help" data-options="iconCls:'icon-help',closable:true" style="padding:10px">
This is the help content.
</div>
</div>
</body>
</html>
用的是1.3.3在tab的示例basic.html的基础上改的
<html>
<head>
<meta charset="UTF-8">
<title>Basic Tabs - jQuery EasyUI Demo</title>
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
<link rel="stylesheet" type="text/css" href="../demo.css">
<script type="text/javascript" src="../../jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
<h2>Basic Tabs</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click tab strip to swap tab panel content.</div>
</div>
<div style="margin:10px 0;"></div>
<div class="easyui-tabs" id="tt" style="width:700px;height:250px">
<div title="About" style="padding:10px">
<p style="font-size:14px">jQuery EasyUI framework help you build your web page easily.</p>
<ul>
<li>easyui is a collection of user-interface plugin based on jQuery.</li>
<li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
<li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML up.</li>
<li>complete framework for HTML5 web page.</li>
<li>easyui save your time and scales while developing your products.</li>
<li>easyui is very easy but powerful.</li>
</ul>
<p><input type="button" value="switch" onclick="$('#tt').tabs('select', 'My Documents');" /></p>
</div>
<div title="My Documents" style="padding:10px">
<ul class="easyui-tree" data-options="url:'../tabs/tree_data1.json',animate:true"></ul>
</div>
<div title="Help" data-options="iconCls:'icon-help',closable:true" style="padding:10px">
This is the help content.
</div>
</div>
</body>
</html>
用的是1.3.3在tab的示例basic.html的基础上改的就是静态代码,没什么用啊
你的tab数量不可预知?tab标题不可预知
你的tab数量不可预知?tab标题不可预知
这些不能再html里面写吗?????
re:什么意思?不能硬编码,可以用js创建呀
假设按钮id为‘btn’,tab是以click来实现:
(1)用trigger,方法类似于:$('#btn').click(function(){
$(tab2).trigger('click')
})(2)直接启动类似于:$('#btn').click(function(){
$(tab2).click();
})