SunSeekerX

这条路才刚刚开始啊~

Ajax,post短信验证码接口

Sundry 0 评 51 度

找了好久md

<script>
            $.ajax({
                type:"post",
                url:"http://dingxin.market.alicloudapi.com/dx/sendSms",
                async:false,
                headers: {
                    "Authorization": "APPCODE 57cd74f5893a47a7bcc0c0456fbc27ef"
                },
                data: {
                    "mobile": "15674835363",
                    "param": "code:1234",
                    "tpl_id": "TP1711063"
                },
                success: function (data,code){
                    alert(data+code);
                },
                error :function (e){
                    alert(e);
                },
                contentType:"application/x-www-form-urlencoded; charset=utf-8"
            });
        </script>

QQ截图20181027173944.png
QQ截图20181027173951.png

JS正则表达式验证手机号码
发表评论
撰写评论