Web/js/GetNewsInfo.js

(完整代码) 756B

$(document).ready(function () {
	if ($("#newsnext") != null) {
		Getnewsprenext();
	}
})

function Getnewsprenext() {
	var link = "../../../IHandler/newsprenext.ashx?newsno=" + $("#thisaticle").html() + "&timespan=" + new Date().getTime();
	$.post(link, function (data) {
		if (data["preid"] != "-1") {
			$("#newspre").attr("href", "/news/WebSite/ahtml/A__" + data["preid"] + ".htm");
			$("#newspre").html(data["pretitle"]);
		} else {
			$("#newspre").html("无");
		}
		
		if (data["nextid"] != "-1") {
			$("#newsnext").attr("href", "/news/WebSite/ahtml/A__" + data["nextid"] + ".htm");
			$("#newsnext").html(data["nexttitle"]);
		} else {
			$("#newsnext").html("无");
		}
		$("#readcount").html(data["readcount"]);
	})
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。