一、前台
<script type="text/javascript">
$(function () {$('#lefttree').tree({
animate: true,
checkbox: false,
url: 'InfoDataSet.ashx?method=zsxq&DJBH=' + '<%=this.DJBH%> ',
onClick: function (node) {
if (node.attributes != "") {
addTab(node.text, node.attributes, node.id);
}
},
onLoadSuccess: function (node, data) {
$('#lefttree').show();
}
});
});
function addTab(text, attributes, id) {
if ($("#tabs").tabs('exists', text)) { //若选项卡已存在,选择该选项卡
$("#tabs").tabs('select', text);
} else {
var content = "<iframe frameborder='0' scrolling='auto' style='width:100%;height:100%' src="
+ attributes + "></iframe>";
$("#tabs").tabs('add', { //生成新的选项卡,
title: text,
closable: true,
conten