ajax demo

$.ajax({
    url:"api/getWeather.asp",
    data:{
        zipcode:97201
    },
    dataType:"json",
    success:function(data){
        $("#weather-temp").html("<strong>" + data.CODE + "</strong> degrees");
    }
});

 

posted @ 2016-02-26 14:08  平小宅  阅读(101)  评论(0编辑  收藏  举报