button:[
{
name: '确定',
callback: function(){
this.content.save();
return false;
},
focus: true
},{
name: '取消'
}
]
{
name: '确定',
callback: function(){
$.dialog.list['parentDialog'].content.save();
return false;
},
focus: true
},{
name: '取消'
}
]
{
name: '确定',
callback: function(){
this.content.save();
return false;
},
focus: true
},{
name: '取消'
}
]
{
name: '确定',
callback: function(){
$.dialog.list['parentDialog'].content.save();
return false;
},
focus: true
},{
name: '取消'
}
]
本文展示了一种对话框按钮配置的方法,通过两个具体的例子,介绍了如何设置对话框中的确定和取消按钮及其回调函数。确定按钮实现了保存内容的功能。
1197

被折叠的 条评论
为什么被折叠?



