PageSourceSearch

https://www.gaticn.com/site/js/news_list.js

js gaticn.com collected 2026-10-03 20:56:40 UTC 1,275 bytes, 57 lines download raw bytes

1var postHost="";
2$(function () {
3    getNewsList();
4});
5
6
7function showDetails(newsId) {
8    var url =postHost+"/api/v1/news/getNewsById?newsId="+newsId;
9    window.location.href="news_details.html?newsId="+newsId;
10}
11var pageNum=1;
12var pageSize=10;
13var totalElement=0;
14var totalPages=0;
15function  getNewsList() {
16    var url =postHost+ "/api/v1/news/getNewsList?pageNum="+pageNum+"&pageSize="+pageSize;
17    $.ajax({
18        url: url,
19        type: 'get',
20        dataType: "json",
21        success: function (data) {
22            // alert(JSON.stringify(data))
23            if (data != null && data != "") {
24               var tmpHtml= template("news_list_tmp",data);
25                $("#news_list_show").html(tmpHtml);
26                totalPages=data.page.totalPages;
27                totalElement=data.page.totalElements;
28            }
29        }
30    });
31}
32
33function nextPage(){
34	if(pageNum==totalPages){
35		alert("已经是最后一页");
36		return;
37	}
38	pageNum=pageNum+1;
39	getNewsList();
40}
41function prePage(){
42	if(pageNum==1){
43		alert("已经是第一页");
44		return;
45	}
46	pageNum=pageNum-1;
47	getNewsList();
48}
49function firstPage(){
50	pageNum=1;
51	getNewsList();
52}
53function lastPage(){
54	pageNum=totalPages;
55	getNewsList();
56	
57}

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.