您的位置:首页 > Web前端 > JQuery

Jquery Ajax 提交

2015-09-07 10:57 465 查看
    $.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("验证码发送失败!");

        }

    });
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: