常用外链js
<!-- jQuery --> <script src=https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js></script> <!-- Bootstrap Core JavaScript --> <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script> <!-- Plugin JavaScript --> <script src="https://cdn.staticfile.org/jquery-easing/1.4.1/jquery.easing.min.js"></script>
需要登录或不需要登录的:
protected $noNeedLogin = '*'; //所有不需要登录
protected $noNeedRight = '*';//所有不需要鉴权
protected $noNeedLogin = ['login', 'register', 'third'];//登录注册不需要登录
前端跳转连接(用户):
用户首页 <a href="{:url('index/user/index')}"
用户登录 {:url('index/user/login')}
用户退出登录 {:url('index/user/logout')}
多语言:
{:__('QQ group')} 在lang目录里面中英文zh-cn.php里面添加QQ group 对应的值
其他:
1 {$Think.config.fastadmin.api_url} //配置文件等 2 3 version: "{:config('fastadmin.version')}" 4 5 os: "{$Think.PHP_OS}" 6 7 phpversion: "{$Think.PHP_VERSION}"