Jquery Ajax 提交

来源:互联网 发布:如何联系淘宝客服介入 编辑:程序博客网 时间:2024/06/08 20:15
    $.ajax({
        async: true,//异步执行
        type: "POST",
        url: "/UserInfo/SendSMSTanspwd",
        data:{"sendtype":sendtype},
        dataType: 'json',
        cache: 'false',
        success: function (result) {
            if (result.Success) {
                //$("#transpwderror").text("验证码发送成功!");
                alert("验证码发送成功!");
            }
            else {
                //$("#transpwderror").text("验证码发送失败!");
                alert("验证码发送失败!");
            }
        },
        error: function () {
            //$("#transpwderror").text("验证码发送失败!");
            alert("验证码发送失败!");
        }
    });
0 0
原创粉丝点击