easyui创建模式化窗口
2016-03-23 18:17
423 查看
/*
创建一个模式化Dialog
*/
var modalDialog = function (options) {
//modalDialog.handler==undefined
var opts = $.extend({
id: '',
title: ' ',
width: 800,
height: 500,
modal: true,
onClose: function () {
$(this).dialog('destroy');
}
}, options);
opts.modal = true;// 强制此dialog为模式化,无视传递过来的modal参数
if (options.url) {
opts.content = '<iframe id="' + options.id + '" src="' + options.url + '" allowTransparency="true" scrolling="auto" width="100%" height="98%" frameBorder="0" name=""></iframe>';
}
return $('<div/>').dialog(opts);
};
创建一个模式化Dialog
*/
var modalDialog = function (options) {
//modalDialog.handler==undefined
var opts = $.extend({
id: '',
title: ' ',
width: 800,
height: 500,
modal: true,
onClose: function () {
$(this).dialog('destroy');
}
}, options);
opts.modal = true;// 强制此dialog为模式化,无视传递过来的modal参数
if (options.url) {
opts.content = '<iframe id="' + options.id + '" src="' + options.url + '" allowTransparency="true" scrolling="auto" width="100%" height="98%" frameBorder="0" name=""></iframe>';
}
return $('<div/>').dialog(opts);
};
相关文章推荐
- easyui多行选择值的处理
- 从客户端(txtContent="<p>1</p>")中检测到有潜在危险的 Request.Form 值
- Java字符串:String、StringBuilder、StringBuffer区别
- Flat - Music scores and guitar tabs editor(乐谱编辑器)
- A. Infinite Sequence
- iOS学习--UITextView的那些事
- serialVersionUID的作用
- UITableView 中 Cell 重用机制导 致内容重复
- JMeter学习(八)JDBC Request
- UI现场异步处理
- Flat - Music scores and guitar tabs editor(乐谱编辑器)
- CharSequence与String的区别
- PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* t
- GPUImageMovieWriter录制视频问题
- Flat - Music scores and guitar tabs editor(乐谱编辑器)
- ios学习--UIFont的你想知道的所有
- session和request的区别
- Android studio 在build.gradle文件添加签名
- request.getParameter(“参数名”) 中文乱码解决方法
- 【NWERC2015】【BZOJ4430】Guessing Camels赌骆驼