开发者社区 问答 正文

关于jquery ui对话框关闭的问题

开发环境:myeclipse 10.7.1

引用的脚本:jquery 1.9.1.js jquery-ui-1.10.3.custom.js

代码:

$("#dialog").dialog({buttons:[{text:"取消",click:function(){
    $(this).dialog("close"); 
}}]});

出现的问题:对话框偶尔会无法关闭,刷新之后问题消失。

展开
收起
a123456678 2016-07-12 10:33:38 2091 分享 版权
1 条回答
写回答
取消 提交回答
  • $(function() {
        $( "#dialog-message" ).dialog({
          modal: true,
          buttons: {
            Ok: function() {
              $( this ).dialog( "close" );
            }
          }
        });
      });
    2019-07-17 19:54:43
    赞同 展开评论
问答分类:
问答地址: