2022年9月8日

PHP配置文件修改session过期时间

摘要: # 利用 cookie 来传递 sessionid session.use_cookies = 1 # SessionID 在客户端 Cookie 储存的时间(秒) / 86400=1天 session.cookie_lifetime = 86400 # Session 数据在服务器端储存的时间(秒 阅读全文

posted @ 2022-09-08 14:33 小馬過河﹎ 阅读(51) 评论(0) 推荐(0)

天地图坐标系转高德坐标系 WGS84转GCJ02

摘要: let [lng, lat] = [116.391358342, 39.9049662090001] console.log([lng, lat].toString()) console.log(wgs84Togcj02(lng, lat).toString()) function wgs84Tog 阅读全文

posted @ 2022-09-08 14:31 小馬過河﹎ 阅读(1915) 评论(0) 推荐(0)

css 渐变文字

摘要: 源码 .container{ width:100vw; height:100vh; display:flex; justify-content:center; align-items:center; } .container .content{ font-size:40px; background: 阅读全文

posted @ 2022-09-08 14:30 小馬過河﹎ 阅读(10) 评论(0) 推荐(0)

thinkphp3.2.5路由配置无法跳转到外部链接的问题

摘要: 官方文档 解决方法 按照文档的说明发现行不通,看了下Route.class.php 修改了第95行附近代码: 阅读全文

posted @ 2022-09-08 14:27 小馬過河﹎ 阅读(27) 评论(0) 推荐(0)

PHP二维码解码QrReader类|二维码图片转字符串

摘要: composer qrcode-detector-decoder composer require khanamiryan/qrcode-detector-decoder 1.0.3 ThinkPHP index.php引入composer require './vendor/autoload.ph 阅读全文

posted @ 2022-09-08 14:25 小馬過河﹎ 阅读(395) 评论(0) 推荐(0)

mysql order by 使用汉字字段排序

摘要: order by convert(`field` using 'GBK') 阅读全文

posted @ 2022-09-08 11:41 小馬過河﹎ 阅读(47) 评论(0) 推荐(0)

JSON.parse出现\n时解析错误

摘要: ```javascript , data: { list: `{$row["bs_json"]}` ? JSON.parse(`{$row['bs_json']}`.replace(/\n/g, "\\n")) : JSON.parse(`[{"title":"","content":""}]`) 阅读全文

posted @ 2022-09-08 11:40 小馬過河﹎ 阅读(32) 评论(0) 推荐(0)

layui表格自动换行相关css和js

摘要: <style> .layui-table-cell { height: auto; overflow: visible; text-overflow: inherit; white-space: normal; word-break: break-all; } .layui-table-cell a 阅读全文

posted @ 2022-09-08 11:39 小馬過河﹎ 阅读(427) 评论(0) 推荐(0)

mysql 自定义函数 身份证号转年龄(支持15/18位身份证)

摘要: 函数 FUNCTION `idcard2age`(`idcard` varchar(255)) RETURNS int(10) BEGIN if idcard regexp '[0-9]{18}|[0-9]{17}X|[0-9]{15}' then if(length(idcard)=18)then 阅读全文

posted @ 2022-09-08 11:38 小馬過河﹎ 阅读(59) 评论(0) 推荐(0)

javascript随机整数

摘要: zoom范围[x,y] 对应关系:Math.floor(Math.random() * [y-x]) + x; 例如:zoom范围[11,18] Math.floor(Math.random() * 7) + 11 阅读全文

posted @ 2022-09-08 11:35 小馬過河﹎ 阅读(17) 评论(0) 推荐(0)

导航