我想请问个问题 在easyui 中
创建tabs后,并生成多个tab,然后点击首个tab,但下部内容显示仍是最后一个tab的内容.
下面是主要的js代码.
function addTab(subtitle, url){
if (!$('#tabs').tabs('exists',subtitle)){
$('#tabs').tabs('add', {
title: subtitle,
content: createFrame(url),
closable: true,
width: $('#mainPanle').width() - 10,
height:$('#mainPanle').height() - 26
});
} else {
$('#tabs').tabs('select', subtitle);
}
tabClose();
}
function createFrame(url) {
var s = '<iframe name="mainFrame" scrolling="auto" frameborder="0" src="' + url + '" style="width:100%;height:100%;"></iframe>';
return s;
}