禁止在对话框关闭时重新加载页面

时间:2013-08-20 13:21:08

标签: jquery-mobile

当我关闭对话框时,会重新加载页面。我该如何预防?

  function getDialog(url){
        $.mobile.showPageLoadingMsg();
        $.ajax({
            url:url,
            success: function(result) {
                $('#content').html(result);       

                $.mobile.changePage('#dialog', 'pop', true, true);
            }
        });
    }

0 个答案:

没有答案