1/** 2 * æ ¹æ®å¶å®æ ç¾ä¸çnewsidè·åé 读æ°ãè¯è®ºæ° 3 */ 4function getNewsIdList() { 5 let newsIdList = $(".antutu_news_read_count").map(function () { 6 return this.id.substring(7); 7 }).get(); 8 let url = "/doc/countlist.htm?newsIdList=" + newsIdList; 9 $.ajax({ 10 type: "get", 11 url: url, 12 dataType: "jsonp", 13 jsonp: "callback",//ä¼ éç»è¯·æ±å¤çç¨åºæé¡µé¢çï¼ç¨ä»¥è·å¾jsonpåè°å½æ°åçåæ°å(ä¸è¬é»è®¤ä¸º:callback) 14 success: function (json) { 15 let read_data = json['read']; 16 let comment_data = json['comment']; 17 for (i = 0; i < read_data.length; i++) { 18 $('.antutu_news_read_count_' + read_data[i]['newsid']).html(read_data[i]['pv']); 19 } 20 for (i = 0; i < comment_data.length; i++) { 21 $(".antutu_news_comment_count_" + comment_data[i]['newsid']).html(comment_data[i]['pv']); 22 $(".newsid_publish_time_" + comment_data[i]['newsid']).html(comment_data[i]['publish_time']); 23 $("#newsid_publish_time_" + comment_data[i]['newsid']).html(comment_data[i]['publish_time']); 24 $("#newsid_publish_time_0_" + comment_data[i]['newsid']).html(comment_data[i]['publish_time']); 25 $("#newsid_publish_time_1_" + comment_data[i]['newsid']).html(comment_data[i]['publish_time']); 26 $("#newsid_publish_time_2_" + comment_data[i]['newsid']).html(comment_data[i]['publish_time']); 27 } 28 }, 29 error: function () { 30 //alert('fail'); 31 } 32 }); 33} 34 35$(document).ready(function () { 36 getNewsIdList(); 37});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.