function ttClick(n) {
if (!$.isEmpty(n.attributes)) {
var url = n.attributes ;
addTab({
border: false ,
closable: false ,
fit: true ,
title: n.text ,
content: '<iframe src="' + url.parseUrl(Base.path) + '" frameborder="0" style="border: 0;width: 100%;height: 99.5%"></iframe>'
});
}
} function addTab(opts) {
// 定位当前的tabs
var t = top.$('#tt');
// 判断tabs是否存在
if (t.tabs('exists', opts.title)) {
// 选中当前打开的tabs
t.tabs('select', opts.title);
// 更新当前打开的tabs
t.tabs('update', {
tab: t.tabs('getSelected')
, options: opts
});
} else t.tabs('add', opts); // 添加tabs
}
easyui 异常:Uncaught TypeError: Cannot read property 'tabs' of undefined
最新推荐文章于 2023-11-10 14:49:22 发布