Home>Article>CMS Tutorial> How does the list of Empire CMS display the number of clicks in real time? (code example)
The following article will introduce to you howEmpire CMSdisplays the number of clicks in a list in real time. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
Related recommendations: "Empire cms tutorial"
Empire CMS list display and real-time display of clicks
1. Browse:[!--onclick--]times
2. Add Jquery code
3. Modify the end of /e/public/ViewClick/index.php
$nojs=(int)$_GET['nojs']; //参数判断输出方式 1=直接输出数字 0=JS输出 if ($nojs==1){ echo $shownum; }else{ echo"document.write('".$shownum."');"; }
For more programming-related knowledge, please visit:Programming Teaching! !
The above is the detailed content of How does the list of Empire CMS display the number of clicks in real time? (code example). For more information, please follow other related articles on the PHP Chinese website!