$.ajax({ url:"api/getWeather.asp", data:{ zipcode:97201 }, dataType:"json", success:function(data){ $("#weather-temp").html("<strong>" + data.CODE + "</strong> degrees"); } });
$.ajax({ url:"api/getWeather.asp", data:{ zipcode:97201 }, dataType:"json", success:function(data){ $("#weather-temp").html("<strong>" + data.CODE + "</strong> degrees"); } });
转载于:https://www.cnblogs.com/zenple/p/5220248.html