TP3.2 URL傳參及模板輸出


本例子結合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>

 

實際網址 http://127.0.0.1/again/index.php?s=/Index/userstudentlist/id/167/ban/25

 

后台代碼

 

模板

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM