开发者社区 问答 正文

ajax提交页面不跳转,导致的问题。session超时,不能让其跳转到登陆页面了。

ajax提交页面不跳转,导致的问题。session超时,不能让其跳转到登陆页面了。

展开
收起
a123456678 2016-07-05 15:38:12 2265 分享 版权
1 条回答
写回答
取消 提交回答
  • 用的是 jquery插件 ajaxFrom formValidator

    $('#createKeyword_from').ajaxForm({
        beforeSubmit : function() {
    
         if (jQuery.formValidator.pageIsValid(1)) {
                return true;
         } else {
          return false;
         }
        },
        dataType : 'json',
        success : function(data) {
         dialogUtils.showDialog(data.msg, "info");
        },
        type : "post",
        resetForm : true
       });
    2019-07-17 19:51:33
    赞同 展开评论