弹出对话框:
1. js中定义iframe框架
var aDialog = $.dialog ({
id : 'alarm_desc',
iframeSrc : url
});
aDialog.dialog(settings);
var alarmDescSettings = {
title : "对话框",
autoOpen : false,
modal : true,
width : 450,
height: 300,
resizable:false,
close: function() {
},
buttons : {
"ok" : {
text : '保存',
'class' : 'bPrimary',
click : function() {
this.close();
}
},
"cancel" : {
text : '返回',
click : function() {
this.close();
}
}
}
};