jquery中調用天氣預報APIajax?
$.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);
}
});
}
});
上一篇什么是接龍程序?