Linux - 查看用户登录记录

有关用户登录的信息记录在 utmp(/var/run/utmp)、wtmp(/var/log/wtmp)、btmp(/var/log/btmp) 和 lastlog(/var/log/lastlog)...

解决网页采集编码正确还是报错的问题

url = 'https://pic.netbian.com/tupian/24072.html'res = requests.get(url=url)if 'in str(r...

CSS样式calc 兼容写法

p{ width: 90%;/*写给不支持calc()的浏览器*/ width: calc(100% - (10px + 5px) * 2); /*注意运算符号后面必须留有空格,否则不生效*/...

伪静态实现禁用某目录执行权限

apache实现方式: Options +FollowSymlinks -Multiviews RewriteEngine On RewriteRule upload/(.*).(php)$ - [...

代码实例-js-时间戳转换成时间

//int str uinx 时间戳//如果是uinx时间戳记得乘于1000function set_time(str){ //这里是秒,如果是毫秒可以把*1000删除 var n = par...

laydate 时间框弹窗点击弹出后立马消失的问题解决

解决思路:为 laydate 添加 trigger: 'click' 属性layui.laydate.render({ elem: '#endDate',...

layui三级联动地址(省市区)下拉框实现代码

layui-select-address 地址选择插件 ...

python3.6报ModuleNotFoundError: No module named 'MySQLdb'及解决方法

ModuleNotFoundError: No module named 'MySQLdb'

thinkphp 自定义模拟404返回

public function s404(){ http_response_code(404);// return $this->fetch('portal@/404...

PhpSpreadsheet解决excel时间导入需要转换问题

// $val = $currentSheet->getCellByColumnAndRow($currentColumn, $currentRow)->getValue();// ...

phpExcel大数据量情况下内存溢出解决

在不进行特殊设置的情况下,phpExcel将读取的单元格信息保存在内存中,我们可以通过PHPExcel_Settings::setCacheStorageMethod()来设置不同的缓存方式,已达到降...

PC前端使用微信扫码登录

引入js文件创建一个扫描div块下面是在thinkphp下的使用方式 let obj = new WxLogin({ id: "login_container", //div的id ap...

友情链接 申请友链