tp5 上使用ueditor富文本插件
将官方下载的数据包放入static 在需要的地方引入 <script id="container" name="content" type="text/plain" ></script> {js href="__ST...
将官方下载的数据包放入static 在需要的地方引入 <script id="container" name="content" type="text/plain" ></script> {js href="__ST...
//方法位置/thinkphp/library/think/Config/---get方法 // 配置文件位置application/extra/文件名.php //文件内容格式 return [ ] //使用 use think\Conf...
<!--html--> <button type="button" class="layui-btn" id="up_pic">上传图片</button> <input class="input p...
function thumb($src = '', $width = 500, $height = 500, $type = 1, $replace = false) { $src = './'.$src; if(is_file($src)...
<label class="layui-form-label">图片</label> <a class="layui-btn" id="image" style="float: left;">...
某日。因为一个项目。控制器我是这么写的 /** * get admin/Picture/index * 显示所有图册信息 * @return view */ public function index() { $data = $this-&...
凡是遇到问题不要想当然,以前就没出错的的代码不一定就没错,只是没到时候而已 回归正题,下面是tp5控制器继承的源码 //主控制器 <?php namespace app\api\Controller; use think\Contro...
for (var i = 0; i< data.msg.length; i++){ //可以获取正确路径user/index $('.layui-nav-tree').append('<li class="layu...
数据表字段是create_time timestamp 默认:CURRENT_TIMESTAMP 使用时间会出现以下错误: A non well formed numeric value encountered 这是因为tp5框架会自...
AOP编程思想--面向切面编程 tp5路由: (设置了路由后pathinfo失效) Route::rule('路由表达式','路由地址','请求类型','路由参数(数组)','变量规则(数组)'); 请求类型:get post del...