Maison > Questions et réponses > le corps du texte
我用get方式获取 控制台出现Uncaught SyntaxError: Unexpected token :
并且走到error,输出Object {readyState: 4, status: 200, statusText: "load"}
$.ajax({
url:'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=appid&secret=secret',
type:"get",
dataType:"jsonp",
async: true,
success: function (result) {
},
error: function (result) {
console.log(result);
}
});
怪我咯2017-04-11 11:04:12
试试
fetch('https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=123',{mode:'no-cors'})