本例子结合layer.open使用

HTML代码

onclick="return stulist(167,25);"

 

 

JS代码

<script type="text/javascript">
        function stulist(id,ban){
            layer.open({
              type: 2,
              title: 'layer mobile页',
              shadeClose: true,
              shade: 0.8,
              area: ['800px', '90%'],
              content: "http://127.0.0.1/again/index.php?s=/Index/userstudentlist/id/"+id+"/ban/"+ban+""
            }); 
        }
    </script>

TP3.2 URL传参及模板输出

 

实际网址 http://127.0.0.1/again/index.php?s=/Index/userstudentlist/id/167/ban/25

 

后台代码

TP3.2 URL传参及模板输出

 

模板

TP3.2 URL传参及模板输出

 

相关文章:

  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-04-01
  • 2021-07-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
相关资源
相似解决方案