1

如何关闭回调函数对话框。我已经尝试过了,但它不起作用。下面是我的代码。

$.Zebra_Dialog(“Please select a recrod”, {
         ‘type’: ‘warning’,
         ‘title’: ‘warning’,
         ‘buttons’:
         [
              {caption: 'OK', callback: function() {
                      this.close();
             }}
         ]
});
4

1 回答 1

3

您的代码应该是:

var md=$.Zebra_Dialog(“Please select a recrod”, {
         ‘type’: ‘warning’,
         ‘title’: ‘warning’,
         ‘buttons’:
         [
              {caption: 'OK', callback: function() {
                      md.close();
             }}
         ]
});
于 2013-09-06T08:15:09.477 回答