- 博客(20)
- 收藏
- 关注
原创 tp6 验证码不显示问题
1、找到Captcha.php里面的create()方法,利用工具定位哪些地方调用了这个方法然后在前面加 ob_clean();2、我的是CaptchaController.php里面的 class CaptchaController { public function index(Captcha $captcha, $config = null) { ob_clean();
2021-12-27 21:30:18
883
原创 layui+tp5.0上传视频到阿里云
layui+tp5.0上传视频到阿里云前端 htnl: <div style="margin-left: 30px"> <button type="button" class="layui-btn" id="test5"><i class="layui-icon"></i>上传视频</button> <input type="text" id="video" value=""> </div>
2021-03-17 17:23:50
395
2
原创 layui 排序
layui 排序排序重载 table.on('sort(test)', function(obj){ //执行重载 table.reload('testReload', { url: '', request: { pageName: 'page' //页码的参数名称,默认:page ,limi
2020-12-23 09:14:53
1374
1
原创 tp5.0上传word时报错
tp5.0上传word文档时报错 报错内容:ZipArchive::locateName(): Invalid or uninitialized Zip object 解决办法: $objReader = \PHPExcel_IOFactory::createReader('Excel2005'); //后缀如果是xls的话用Excel5,是XLSX用 Excel2007 后续报错:致命错误: Class 'PHPExcel_Reader_Excel2005' not found
2020-12-21 09:35:33
425
原创 tp5.0 百度编辑器上传图片到阿里云oss
tp5.0 百度编辑器上传图片到阿里云oss 百度编辑器官方sdk包里面的 php/config.json文件 113-117注释掉改成阿里云上传图片方法 // //创建目录失败 // if (!file_exists($dirname) && !mkdir($dirname, 0777, true)) { // $this->stateInfo = $this->getStateInfo("ERROR_C
2020-12-15 09:38:27
566
原创 tp5.0 微信jsapi支付
tp5.0 微信jsapi支付流程1、下载官方sdk包放在extend目录下2、在公众号里面关联商户号,在商户号里面配置域名3、在Wxpay.Config.php这个文件里面把你的公众号APPID、APPSECRET,商户号MCHID,自己设置的商户秘钥KEY全部设置好; 例:public function GetAppId() { return 'wx12345678912';//这里填公众号APPID(还有几个地方
2020-12-14 17:46:00
960
1
原创 php时间戳和日期相互转换
php时间戳和日期相互转换php时间戳转日期 date('Y-m-d,H-i-s',$time)php日期转时间戳 strtotime($time);
2020-10-29 12:02:08
256
原创 Vue.js 防重复点击
Vue.js 防重复点击 data(){ return{ button:false } }, methods:{ click(){ if(this. button){ return false; } this. button = true; //你要执行的代码 ... this. but
2020-09-26 15:32:23
349
原创 uniapp swiper高度自适应
uniapp swiper高度自适应 一、给个class <swiper class="sw"> 二、给class给样式 .sw{ position: fixed; height: 100%; width: 100%; top:2.5rem; left: 0; } 简单吧!
2020-09-12 09:48:23
2753
2
原创 jq data-赋值
jq data-赋值 $('#data').attr('data-id',123) //取值attr('data-id')//取值赋值自身$(this).attr()
2020-09-09 10:47:34
1290
原创 JQuery 找父、子、兄弟元素的方法
JQuery 找父、子、兄弟元素的方法jQuery.parent(expr) //找父元素jQuery.parents(expr) //找到所有祖先元素,不限于父元素jQuery.children(expr) //查找所有子元素,只会找到直接的孩子节点,不会返回所有子孙jQuery.siblings(expr) //查找兄弟节点,不分前后jQuery.find(expr) find() 方法返回被选元素
2020-09-04 18:16:25
681
原创 uniapp 笔记-请求和渲染页面 循环三级
uniapp 笔记-请求和渲染页面 循环三级1、js部分 export default { onLoad() { this.getList();//执行方法执行到页面上 }, data() { return { list: [],//创建一个数组 } }, methods: { getList() { uni.request({ url: 'http://127.0.0.1/tp5.0/public/?s=index/index/get',//后
2020-08-28 16:53:05
1232
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人