layui 关闭/打开新标签

摘要: setTimeout(function () { //关闭当前页面并跳转到课程列表 var topLayui = parent self ? layui : top.layui; parent.layui.admin.events.closeThisTabs(); topLayui.index.op 阅读全文
posted @ 2022-12-22 14:59 明蓝 阅读(93) 评论(0) 推荐(0) 编辑

http头部meta 作用

摘要: <meta charset="utf-8"> <!-- 设置文档字符编码 --> <meta http-equiv="x-ua-compatible" content="ie=edge"><!-- 告诉IE浏览器,IE8/9及以后的版本都会以最高版本IE来渲染页面。 --> <meta name=" 阅读全文
posted @ 2022-04-02 16:59 明蓝 阅读(82) 评论(0) 推荐(0) 编辑

关于sql json数据的处理

摘要: $resultProductPrice = DB::update("update lev_product_price set detail=json_set(detail,'$.颜色','红色') where id = 41"); $resultProductPrice = DB::update(" 阅读全文
posted @ 2021-07-22 10:51 明蓝 阅读(72) 评论(0) 推荐(0) 编辑

时间函数strtotime的强大

摘要: 转载:php的strtotime举例-lsstarboy-ChinaUnix博客 1、上周日午夜 strtotime("last sunday"); 2、本周日午夜 strtotime("this sunday"); 3、今天午夜 strtotime("today"); 4、昨天午夜 strtoti 阅读全文
posted @ 2021-07-08 11:33 明蓝 阅读(312) 评论(0) 推荐(0) 编辑

/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h'

摘要: 出现下列异常: /usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h /usr/bin/install: cannot create regular file `/usr/local/jpeg6/include 阅读全文
posted @ 2020-03-20 14:15 明蓝 阅读(1824) 评论(0) 推荐(0) 编辑

linux安装php7.2.7

摘要: 转载:https://www.cnblogs.com/chancy/p/9238149.html 1、下载php 官网下载:#wget http://cn2.php.net/get/php-7.2.7.tar.gz/from/a/mirror。(ps:应该是这么下载的,但是我下载的都是一个mirro 阅读全文
posted @ 2020-03-20 11:50 明蓝 阅读(547) 评论(0) 推荐(0) 编辑

关于sql时间方面的处理

摘要: 查询大于时间两小时(例:订单设置两小时后过期 $res = Order::where(['status'=>0,'sid'=>1])->whereRaw("created_at < NOW() - INTERVAL 2 HOUR")->get(); 时间字段< NOW() - INTERVAL 2 阅读全文
posted @ 2020-03-10 14:03 明蓝 阅读(404) 评论(0) 推荐(0) 编辑

关于centos防火墙的一些问题

摘要: 防火墙有两种:firewall iptables。 两个都需要设置 阅读全文
posted @ 2020-03-02 15:14 明蓝 阅读(117) 评论(0) 推荐(0) 编辑

linux 安装ssl 失败原因

摘要: 配置文件成功的情况下打不开:开放端口 设置端口 server { listen 443 default ssl; //需要加不然会显示404 default ssl server_name 域名; ssl_certificate zhengshu/certificate.crt; ssl_certi 阅读全文
posted @ 2020-01-08 13:57 明蓝 阅读(793) 评论(0) 推荐(0) 编辑

linux安装php7.2.7

摘要: 1、下载php 官网下载:#wget http://cn2.php.net/get/php-7.2.7.tar.gz/from/a/mirror。(ps:应该是这么下载的,但是我下载的都是一个mirror文件不是压缩包,所以我是用的浏览器下载然后上传到linux服务器。具体原因未知) 2、解压php 阅读全文
posted @ 2019-12-27 15:42 明蓝 阅读(1724) 评论(0) 推荐(1) 编辑