function postData() {
        var post = "";
        $(":text").each(function() {
            post += "&" + this.name + "=" + this.value;
        });
        $(":password").each(function() {
        post += "&" + this.name + "=" + this.value;
        });
        return post;
    }

    var ajaxCheck = function(dataStr) {

        $.ajax(
        {
            type: "GET",
            async: false,
            url: window.location.href,
            dataType: "json",
            data: dataStr,
            success: function(data) {
                flag = data.Result;
                message = data.Message;
                dbExists = data.Exists;
            }
        });
    }

//调用
urlStr = "type=checked" + postData();
ajaxCheck(urlStr);

相关文章:

  • 2021-07-10
  • 2022-12-23
  • 2021-11-29
  • 2021-05-20
  • 2021-09-12
  • 2022-02-08
  • 2021-10-15
猜你喜欢
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2022-01-14
  • 2021-08-14
  • 2022-02-26
相关资源
相似解决方案