hadsky的php的变量,怎么用js插入html页面?可以加速打开页面.
我想把php变量{$_G['TEMP']['LABELSHTML']},用js判断某个版块,才插入html页面,不知道怎么做。
<div style="border-top:dashed 1px #ddd;width:96%" id="forumlabel" class="pk-row pk-padding-top-10 pk-padding-bottom-10 pk-text-sm pk-hide"> <div>{$_G['TEMP']['LABELSHTML']}</div> </div> <script> if($_URI['SORTID'] == "7") { $('#forumlabel').removeClass('pk-hide'); qrjs('template/js/forumlabel.js') } </script>