实例一(保存window manager):if (win1) win1.show(); else win1 = $.ligerDialog.open({ height:
200, url: '../../welcome.htm', width: null });
实例二:$.ligerDialog.open({ height: 200,url: '../../welcome.htm' });
实例三:$.ligerDialog.open({ url: '../../welcome.htm', height: 200,width: null, buttons:
[ { text: '确定', onclick: function (item, dialog) { alert(item.text); } }, { text:
'取消', onclick: function (item, dialog) { dialog.close(); } } ] });
实例四:$.ligerDialog.open({ url: '../../welcome.htm', width: null,height:200,modal:false
});
实例五:$.ligerDialog.open({ url: '../../welcome.htm',height: 200, isResize:true });
实例六:模拟手工控制关闭和打开 var m = $.ligerDialog.open({ url: '../../welcome.htm',height: 200,
isResize:true }); setTimeout(function () { m.hide(); setTimeout(function () { m.show();
}, 1000); }, 1000);
实例七: var m = $.ligerDialog.open({ url: '../../welcome.htm', height: 200, isResize:
true }); setTimeout(function () { m.setUrl('dialogUrl.htm'); }, 1000);