ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

在html靜態(tài)頁面動態(tài)任意調用模板文件

動態(tài)地址格式: 

{SITE_URL}index.php?c=api&m=html&name=模板名稱&format=輸出格式

輸出地址格式值:

js : 用于<script scr=動態(tài)地址></script>, 支持輸出頁面

json: 返回json格式數(shù)據(jù)

jsonp: 返回jsonp格式數(shù)據(jù)

html: 返回html結果



例如,我要在首頁模板動態(tài)調用yy.html的模板內容, 


<script type="text/javascript">
                $.ajax({
                    type: "GET",
                    async: false,
                    url:"{SITE_URL}index.php?c=api&m=html&name=yy&format=jsonp",
                    dataType: "jsonp",
                    success: function(json){
                        $("#js-headerRight").html(json.html);
                    },
                    error: function(){ }
                });
            </script>

其中,js-headerRight,是輸出容器



文檔最后更新時間:2016-04-28 10:29:44