用浏览器打开一个api地址可以正确访问,但是jquery代码访问死活不行,求助!地址:https://www.sojson.com/open/api/weather/json.shtml?city=北京 我的代码:$.ajax({url:"https://www.sojson.com/open/api/weather/json.shtml?city=北京",type:"get",dataType:"json",success:function(data){console.info(data);},error:function(a,b,c){console.info("error",a,b,c);}});
添加回答
举报
0/150
提交
取消