如何在回叫功能上关闭对话框。我试过这个,但它不起作用。以下是我的代码。
$.Zebra_Dialog(“Please select a recrod”, {
‘type’: ‘warning’,
‘title’: ‘warning’,
‘buttons’:
[
{caption: 'OK', callback: function() {
this.close();
}}
]
});
答案 0 :(得分:2)
您的代码应为:
var md=$.Zebra_Dialog(“Please select a recrod”, {
‘type’: ‘warning’,
‘title’: ‘warning’,
‘buttons’:
[
{caption: 'OK', callback: function() {
md.close();
}}
]
});