home-code

示例❤源码


<!DOCTYPE html><html><head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'>
<title>模板包含</title>
<meta name='robots' content='noindex, nofollow'>
<script src="{=PATH_VENDUI}/jquery/jquery-2.x.js"></script>
<script src='{=PATH_PROJ}/index.php?ajax-comjs&act=initJs&tpldir=demo'></script>
</head><body> 

<h2>js数据标签</h2>

{tag:t1=[jsList][modid,news][limit,3]}
{title($t_title,12,$v)}<br>
{/tag:t1}

<h2>js动态字段</h2>
点击:<i id="jsid_field_news:2019-5k-j1dx:click">{=$click}<!--,add1--></i>次<br>
评论:<i id="cnt_nrem">0</i>条 (下一行会通过id=cnt_nrem属性吧结果更新到这此)<br>
评论:(<i id="jsid_count_nrem:2019-5k-j1dx">0<!--news,cnt_nrem--></i>条)<br>
网站留言:(<i id="jsid_count_gbook:0">0</i>条) //所有留言条数<br>

<h2>js广告调用</h2>
<div id='jsid_advs_adv1'><!--adpic:aphom--></div>
<span id='jsid_advs_adv2'><!--adpic:apinn--></span>
<div id='jsid_advs_advx'><!--adxxx:yyhom--></div>

<script>jtagSend()</script>

</body></html>

-End-