jquery中调用天气预报API(ajax)
发布网友
发布时间:2022-04-26 21:21
我来回答
共2个回答
热心网友
时间:2022-04-15 00:05
$.getScript('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js', function(_result) {
if (remote_ip_info.ret == '1') {
$.ajax({
type: "GET",
url: "http://wthrcdn.etouch.cn/weather_mini?city="+remote_ip_info.city,
data: "",
success: function(msg){
console.log(msg);
}
});
}
});
热心网友
时间:2022-04-15 01:23
具有天赋76他