easyUI如何只打开一个选项卡tabs?

Of Chen 2017-08-28 03:13:24
如图,当我点击左侧的菜单,在右侧打开选项卡tabs,但是只打开一个选项卡,即如果点击另一个菜单,更新当前已经打开的tabs,实现只打开一个选项卡tabs
...全文
291 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Go 旅城通票 2017-08-28
  • 打赏
  • 举报
回复
update 	param 	Update the specified tab panel, the param parameter contains two properties:
tab: the tab panel to be updated.
type: the updating type, available values are: 'header','body','all'.
options: the panel options.

Code example:

// update the selected panel with new title and content
var tab = $('#tt').tabs('getSelected');  // get selected panel
$('#tt').tabs('update', {
	tab: tab,
	options: {
		title: 'New Title',
		href: 'get_content.php'  // the new content URL
	}
});

// call 'refresh' method for tab panel to update its content
var tab = $('#tt').tabs('getSelected');  // get selected panel
tab.panel('refresh', 'get_content.php');


Web开发学习资料推荐
easyui开发技巧
easyui datagrid fitColumns:true失效解决办法

39,085

社区成员

发帖
与我相关
我的任务
社区描述
HTML5是构建Web内容的一种语言描述方式。HTML5是互联网的下一代标准,是构建以及呈现互联网内容的一种语言方式.被认为是互联网的核心技术之一。
社区管理员
  • HTML5社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧