js给当前url添加get参数,兼容旧参数

8-04 603 views

example updateQueryStringParameter("https://www.baidu.com?a=123",'b','hello') //result https://www.baidu.com/?a=123&b...
阅读全文 0

解决 laravel-admin between datetime 假如数据库是时间戳int类型无法筛选。

7-06 685 views

laravel-admin默认的between->datetime(),查询默认是datetime类型,但是假如数据库是时间戳类型就会报错,又不想改底层文件的话可以试试加自定义筛选功能...
阅读全文 0

php解析英文语句,自动分解。

6-07 711 views

参考:https://www.php.net/manual/en/function.str-split.php 最近碰到一个问题,客户的英文地址太长,超出接口api字段长度,所以需要解析下语句分解发送。 ...
阅读全文 0

使用js弹出chrome windows通知提醒

4-20 936 views

废话少说,直接上代码 function notifyMe(notification_title, body) { if (Notification.permission !== "granted") Notification.re...
阅读全文 0

记录一个laravel-excel导出表格值为0导出excel显示空的解决方法。

2-02 1,163 views

最近在使用laravel-excel导出表格的时候,发现假如字段值为0的情况下,导出的excel中直接显示为空,找到一个方法解决,如下. 在laravel-excel的config配置中...
阅读全文 0

php实现redis延时队列

11-07 1,353 views

写了一个简单的类实现 使用方法 $class = new RedisDelayQueue(); $class->execute(); <?php namespace app\common\service; class RedisDelay { ...
阅读全文 0

centos7安装python3.8

3-30 2,620 views

1.安装python 依赖 sudo yum -y install epel-release sudo yum -y update 安装完后可以 reboot 重其服务器,非必须。 2.安装gcc编译环境等等 sudo yum -y gro...
阅读全文 1

php获取包含10w个手机号的txt文件(逗号隔开)

2-25 1,569 views

txt文件格式如下 13000000000,13000000005,13000000403,13001010129,13001010688,13001010838,13001016389,13001019538,13001030005,13001042700,13001047495...
阅读全文 0

使用yum安装Go(Golang)

9-30 2,586 views

使用yum安装Go(Golang) 本来准备直接yum install golang或者yum install go, 执行命名后,发现没有这个包。于是只能先添加源,然后在使用命令行安装了。 Ins...
阅读全文 0

php使用Carbon获取2个日期之间的日期

9-03 2,000 views

<?php use Carbon\CarbonPeriod; $period = CarbonPeriod::create('2018-06-14', '2018-06-20'); // Iterate over the period fore...
阅读全文 0