标签:ext console window container containe http class cli ref
// 上一篇 下一篇
$(function () {
$(".pre").click(function () {
$(document).scrollTop(0)
//获取url参数第四个开始到第五个
var id = window.location.search.substr(4, 5)
var pageData = {
id: id
};
$.ajax({
url: "https://test-home.lexjin.com/api/Notice/NoticeId",
data: pageData,
success: function (res) {
console.log(res, ‘ee‘)
var html = ""
var data = res.Data
if (data) {
html += `<div class="title-wrap">
<img src="./images/successExample/zjyd-logo.png" >
<p>诚信、创新、专业、极致</p>
<h2>${data.Title}</h2>
</div>`
html += `${data.Content}`
$(".container-c").html(html)
location.href = "https://test-home.lexjin.com/sucessExampleDetail.html?id=" + (id)
}
}
})
})
$(".next").click(function () {
$(document).scrollTop(0)
var id = parseInt(window.location.search.substr(4, 5))
var pageData = {
id: id
};
$.ajax({
url: "https://test-home.lexjin.com/api/Notice/NoticeId",
data: pageData,
success: function (res) {
console.log(res, ‘ss‘)
var html = ""
var data = res.Data
if (data) {
html += `<div class="title-wrap">
<img src="../images/successExample/zjyd-logo.png" >
<h2>${data.Title}</h2>
</div>`
html += `${data.Content}`
$(".container-c").html(html)
location.href = "https://test-home.lexjin.com/sucessExampleDetail.html?id=" + (id)
}
}
})
})
})
上一篇跳转
标签:ext console window container containe http class cli ref
原文地址:https://www.cnblogs.com/xiaoxiao95/p/12808884.html