上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 1.看图 如果 想要不靠数据库字段自动生成 ,那么你只能通过代码修改,修改代码如下: <ul class="nav nav-tabs" data-field="status"> <li class="active"><a href="#t-all" data-value="" data-toggle 阅读全文
posted @ 2021-06-15 15:29 blog_zss小帅-博客猿 阅读(1675) 评论(0) 推荐(0) 编辑
摘要: 确实是,我今天用这个插件也是,缩略图并不生成。也没有教程 找到原因了,找到addons/thumb/Thumb.php的uploadAfter($param)方法,修改: //对文件进行检测 不是图片类型的不做处理 if(!strpos($data['mimetype'],'image')) { r 阅读全文
posted @ 2021-06-10 10:43 blog_zss小帅-博客猿 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 功能介绍 使用前请一定使用 composer require topthink/think-image 命令安装tp官方图片处理拓展包,否则无法使用。 H0CmbAv4riaB/TuwooM/WA== 目前仅支持本地存储,不支持云存储。 暂时只有四个选项 ELSuT35PS29FxyGFfRjzrw 阅读全文
posted @ 2021-06-10 10:42 blog_zss小帅-博客猿 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 引用方式如下 \think\image::open($imgSrc); 类的命名空间没有错误,检查了下,发现应该是框架的依赖自动注入出错, 最简单的解决方法是把 ./vendor/topthink/think-image/src下的文件(包括image.php和image文件夹) 移动到 ./thi 阅读全文
posted @ 2021-06-10 10:41 blog_zss小帅-博客猿 阅读(935) 评论(0) 推荐(0) 编辑
摘要: <?php header("Content-type:text/html;charset=utf8"); date_default_timezone_set("RPC"); $signature = $_GET["signature"]; $timestamp = $_GET["timestamp" 阅读全文
posted @ 2021-06-04 18:19 blog_zss小帅-博客猿 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1.将xunsearch设置为开机启动(可选) 1、vim /etc/rc.local #编辑开机启动脚本 2、将/usr/local/xunsearch/bin/xs-ctl.sh start 命令添加进去,如下图 2.将xunsearch目录添加到系统变量(可选) 目的:可能在操作时,会经常对x 阅读全文
posted @ 2021-03-01 19:57 blog_zss小帅-博客猿 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.“=” 一个等号为 赋值 $a = 0 var_dump($a); //$a=0; 2."=="双等号为 判断值是否相等 ,是不判断二者是否是同一数据类型 $b = "1"; $c = 1; if($b == $c){ //可以相等 数值相等 } 3.“ ” 三个等号 判断值是否相等 ,类型是否 阅读全文
posted @ 2021-02-24 16:50 blog_zss小帅-博客猿 阅读(97) 评论(0) 推荐(0) 编辑
摘要: {field: 'time', width: 180, title: '创建时间', templet:function (d) { var t1=d.time*1000 return util.toDateString(t1); } }, layui.use(['form', 'table','ut 阅读全文
posted @ 2021-02-05 17:54 blog_zss小帅-博客猿 阅读(287) 评论(0) 推荐(0) 编辑
摘要: nginx环境下的tp5伪静态: location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } ///也可以直接在phpstudy直接这样使用: if (!-e $request_f 阅读全文
posted @ 2021-01-14 09:26 blog_zss小帅-博客猿 阅读(6758) 评论(0) 推荐(1) 编辑
摘要: //开启验证器 protected $modelValidate = true; //是否开启validate 验证默认是fasle 关闭状态 protected $modelSceneeVaildate = true; //是否开启模型场景验证默认是false 关闭状态 (模型场景) 在验证控制器 阅读全文
posted @ 2020-12-25 13:50 blog_zss小帅-博客猿 阅读(1715) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页