数据接口如下:请求代码: $(function($){
$.ajax(url, {
dataType: 'jsonp',
crossDomain: true,
success: function(data) {
console.log(data)
}
});
});这个接口的数据能请求成功吗?
1 回答
大话西游666
TA贡献1817条经验 获得超14个赞
$.ajax({
url:url,
data:{}, type: "GET",
dataType:'json',
success:function (json) {
console。log(json)
}, error:function(er){
console.log(er)
}
})应该是这种结构。 你的代码url那里写法有错误
添加回答
举报
0/150
提交
取消
