美文网首页
20160829 接口

20160829 接口

作者: 代码界的小学生 | 来源:发表于2016-08-30 10:19 被阅读0次

    接口

    js请求代码

    $.ajax({
        url:'http://api.weatherdt.com/common/?area=101020100&type=forecast&key=XXXXXX',    
        type : 'post',
        cache : false,
        dataType : 'jsonp',
        success : function(data) {
            for (var obj in data.forecast){
                alert(obj);
            }
        }
    });
    

    相关文章

      网友评论

          本文标题:20160829 接口

          本文链接:https://www.haomeiwen.com/subject/rtpfettx.html