NGToolsCSharp/NGTools/obj/Release/Package/PackageTmp/Scripts/EASYUI/my.js
2024-09-13 16:44:30 +08:00

37 lines
922 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$(function () {
//点击事件
// $('#mytree').tree({
//var node = 'test';
// onClick: function(node){
// if($('#mytree').tree('isLeaf',node.target)){
// $.messager.alert node text property when clicked
//$.messager.alert("提示",node.text);
// addNewTab(node.text);
// }
// }
// });
//$('#cc').layout('collapse','west');
//日历初始化
$('#calendar').calendar({
current: new Date()
});
});
function addNewTab(tabname) {
//创建一个新的窗口在mainlayout上
if (!$("#mainTabs").tabs('getTab', tabname)) {
$("#mainTabs").tabs('add', {
title: tabname,
selected: true,
closable: true,
content: "<iframe src='" + 'http://www.baidu.com' + "' style='width:100%;height:100%' frameborder='no' border='0' marginwidth='0' marginheight='0' scrolling='yes' />"
});
}
else {
$('#mainTabs').tabs('select', tabname);
}
}