Ajax,post短信验证码接口
SunSeekerX / 2018-10-27 / Sundry / 阅读量 620

找了好久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