logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

thinkphp6 只有默认页能访问 其他404 其他模块404

中添加如下配置,后重启服务。

文章图片
thinkphp5 使用cache缓存

//引入缓存use think\Cache;//写入缓存('缓存名','缓存值',缓存时间)Cache::store('redis')->set('b','valueaa',60);//取出缓存('缓存名')Cache::get('b')//如果缓存不存在可设定默认值('缓存名','默认值')Cache::get('name','')//删除缓存(缓存名)Cache::rm('name');

Sublime Text 3 在文件夹中查找,搜索指定内容

一. 方法11. 将文件夹拖到sublime左边栏2. 鼠标放到文件夹中右键,选择在文件夹中查找二. 方法21.不管中文版还是英文版,选择导航栏中第四个,然后选择在文件中查找

百度搜索过滤指定网站

百度搜索的时候 在搜索的关键字后面加上 [ -CSDN ],就过滤掉了CSDN的数据了

H5 识别条形码

1. demo下载链接: https://pan.baidu.com/s/1gqK3z3BxtYWp9U2-T3VWSg提取码: 3mq22. 支持拍照识别和照片上传识别3. 距离越近识别度越好4. 代码示例<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0 Transitional//EN"><html><head lang=en

js 获取input file上传文件大小

$("#shop_img").change(function (e) {var file, img;if ((file = this.files[0])) {img = new Image();img.onload = function () {if(this.width != 640 || this.he...

PHP redis hash

/ $str=$redis->hmset($key,['aaa'=>'星期一','bbb'=>'星期二','ccc'=>'星期三']);// $str=$redis->hsetnx($key,'aaa100', '梅西');/*$str=$redis->hset($key,'shop','您好');$redis->hset($key,'shop','您好');// 给hkey中field 增加指定

#redis
nginx 反向代理后css,js,图片404

添加代码:location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${proxy_pass http://www.teirea.cn;}location ~ .*\.(js|css)?${proxy_pass http://www.teirea.cn;}重启nginx:service nginx re...

error: cannot open .git/FETCH_HEAD: Permission denied

解决方法:进入.git目录执行命令:chmod -R 777 FETCH_HEAD这种情况一般是没有权限,需要登录linux,进入到FETCH_HEAD同目录下执行如上命令如有其他疑问可加QQ:3053916151

redis 有序集合

redis 排序功能1.redis 排序封装类$list=['20220105','20220106','20220107'];$user=new WpsCs();$user->setsortname('user_jf');foreach($list as $k=>$v){$user->add('user_jf'.$v,$this->rand());}

#redis
    共 18 条
  • 1
  • 2
  • 请选择