迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
show.html寫法:
1、顯示模塊內容閱讀量,并主動增加(之前必須加裝jquery)
{dr_show_hits($id)}
這個是引入jquery.min.js ?
頁面已經引入jquery.min.js 還是顯示0次
<script type="text/javascript">
$.ajax({
type: "GET",
url:"/index.php?c=api&m=hits&module={MOD_DIR}&id={$id}",
dataType: "jsonp",
success: function(data){
$("#dr_show_hits_{$id}").html(data.html);
},
error: function(){ }
});
</script>
http://223987.com/doc/627.html
head
<script type="text/javascript">
$.ajax({
type: "GET",
url:"/index.php?c=api&m=hits&module={MOD_DIR}&id={$id}",
dataType: "jsonp",
success: function(data){
$("#dr_show_hits_{$id}").html(data.html);
},
error: function(){ }
});
</script>
http://223987.com/doc/627.html
head