http://www.apdwn.com/doc/367.html
方法二:真靜態(tài)調(diào)用數(shù)據(jù)
第一步復(fù)制代碼新建:template/pc/default/home/api/member.html
第二步在網(wǎng)站模板index.html(迅睿原模板)放入調(diào)用代碼
但是生成靜態(tài)頁面后,不顯示,代碼顯示錯(cuò)誤信息如下:
<div id="dr_member_info">
</div>
<!-- 動(dòng)態(tài)調(diào)用member.html模板的會(huì)員登錄信息 -->
<script type="text/javascript"> $.ajax({ type: "GET", url:"/index.php?s=api&c=api&m=template&format=jsonp&name=member.html&", dataType: "jsonp", success: function(data){ $("#dr_member_info").html(data.msg); } });</script>
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅睿官方創(chuàng)始人
是上面這樣嗎