常规css,js引入
php
// css,js用
$this->assign('MODULE_NAME',MODULE_NAME);
$this->assign('ACTION_NAME',ACTION_NAME);
$this->assign('ver',rand(11111,99999));
general.html
<!-- 单页的css -->
<link rel="stylesheet" href="/admin/{$MODULE_NAME}/css/{$ACTION_NAME}.css?ver={$ver}" />
<!-- 单页的js -->
<script src="/admin/{$MODULE_NAME}/js/{$ACTION_NAME}.js?ver={$ver}"></script>
在最下方引入
<include file="Public:bottomJs" />
<include file="Public:general" />
按照规律引入即可。
常用,单页相结合。