|
发表于 2024-7-24 15:34:38
|
显示全部楼层
弹窗 确认按钮 "text": "确定", 如何只执行一次 代码要怎么修改
var dialog = o2.DL.open({
"style" : "o2",
"title": "弹出框标题",
"width": "400",
"height" : "200",
"isMax": false,
"isClose": true,
"isResize": true,
"isMove": true,
"isTitle": true,
"offset": {"x":-200, "y": -100},
"mask": true,
"content": new Element("div"),
"container": this.form.getApp().content,
"duration": 200,
"buttonList": [
{
"text": "确定",
"action": function(){
var result = {"key":"value"};
if (callback) callback.apply(this, [result]);
dialog.close();
}.bind(this)
},
{
"text": "取消",
"action": function(){
|
|