今日头条API

     

     

    $(document).ready(function(){
         $.ajax({ url: "http://ic.snssdk.com/2/article/v25/stream/?category=news_hot&count=20&min_behot_time=1457659116&bd_latitude=4.9E-324&bd_longitude=4.9E-324&bd_loc_time=1457672153&loc_mode=5&lac=4527&cid=28883&iid=3839760160&device_id=12246291682&ac=wifi&channel=baidu&aid=13&app_name=news_article&version_code=460&device_platform=android&device_type=iToolsAVM&os_api=19&os_version=4.4.4&uuid=352284045861006&openudid=84c1c7b192991cc6",type: "GET",dataType: "jsonp", //指定服务器返回的数据类型
                success: function (data) {
    		    var obj = data.data;
                var num=1;				
    			for(var i in obj) {		
    				var str = "
  • "+num+". "+obj[i].title+"
  • "; $("#getnownew").append(str); num=num+1; if(num==11){return;} } } }); });

     

    你可能感兴趣的:(常用插件)