easyui tabs页带刷新按钮,页面错乱问题

2017-01-17 19:58 阅读 1,837 次 评论 0 条

解决方法:添加红色行
mainPanel.tabs('add', {
title: node.text,
href: encodeURI(url),
cache: true,
method: 'GET',
closable: true,
tools: [{
iconCls: 'icon-mini-refresh',
handler: function() {
$('#main').tabs("select", $(this).parent().parent().first().first().text());
var tab = $('#main').tabs('getSelected'); // get selected panel
$('#main').tabs('update', {
tab: tab,
options: {
title: node.text,
href: encodeURI(url) // the new content URL
}
});
}
}]
});

版权声明:本文著作权归原作者所有,欢迎分享本文,谢谢支持!
转载请注明:easyui tabs页带刷新按钮,页面错乱问题 | 雨晨博客
分类:PHP, 程序笔记 标签:, ,

发表评论


表情