zoukankan      html  css  js  c++  java
  • 上一篇跳转

    // 上一篇 下一篇
    $(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" alt="">
              <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" alt="">
                    <h2>${data.Title}</h2>
                    </div>`
              html += `${data.Content}`
              $(".container-c").html(html)
              location.href = "https://test-home.lexjin.com/sucessExampleDetail.html?id=" + (id)
            }
          }
        })
      })
    })
  • 相关阅读:
    elasticsearch操作命令
    mysql-清除binlog日志命令
    TensorFlow 基础 (03)
    TensorFlow 基础 (02)
    TensorFlow 基础 (01)
    Python 基础练手 32 道
    Pandas 批量处理文本表
    Pandas 清除 Excel 特殊字符
    MNIST实例-Tensorflow 初体验
    字符串和文本 (02)
  • 原文地址:https://www.cnblogs.com/xiaoxiao95/p/12808884.html
Copyright © 2011-2022 走看看