jquery使用ajax请求腾讯地图API,根据ip获取请求者的所在地区。
当dataType为”jsonp“,return就失效了,控制台输出undefined,dataType为json时,return可以使用。我需要单独拿出来某个数值后面代码需要用到
output和dataType均为jsonp
output为jsonp,而dataType为json
output为json,而dataType为jsonp
output和dataType均不为jsonp
JSONP或者服务器返回allow-regions,method等三个头,客户端有提示的
jsonp跨域只支持http请求