上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页

2022年9月9日

PHP替换<br>标签为换行符

摘要: $html=\preg_replace('/<br\\s*?\/??>/i',chr(13),$html); 阅读全文

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

mysql group_concat 缺失数据 | 修改my.ini 默认配置

摘要: 核心配置 group_concat_max_len = 9999999 相关配置 sql-mode = "NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" max_allowed_packet = 256M group_concat_max_len = 9999 阅读全文

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

vue客户端发送两次请求的解决办法

摘要: header中content-type 设为 application/x-www-form-urlencoded; header中不要设置其他参数。 阅读全文

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

javascript 时间字符串转时间戳

摘要: 字符串转时间戳 var str='2020-10-20 12:00:00' new Date(str.replace(/-/g,'/')).getTime() 当前时间戳 new Date().getTime() 阅读全文

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

jQuery 判断dom是否存在

摘要: if($('qrcode').length > 0){ //doSomething } 阅读全文

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

scrollbar.css

摘要: /* 根据实际需求,可以不要。 */ body { overflow-y: scroll; } ::-webkit-scrollbar { /*滚动条整体样式*/ width: 6px; /*高宽分别对应横竖滚动条的尺寸*/ height: 6px; } /*定义滚动条轨道 内阴影+圆角*/ ::- 阅读全文

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

sweetalert2的基本用法

摘要: github https://github.com/sweetalert2/sweetalert2/ theme https://github.com/sweetalert2/sweetalert2-themes Examples <link rel="stylesheet" href="https 阅读全文

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

tipso简单用法

摘要: github https://github.com/object505/tipso Examples <!--head--> <script src="//cdn.jsdelivr.net/npm/tipso/src/tipso.min.js"></script> <link rel="styles 阅读全文

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

PHP生日转星座/生日转生肖(属相)

摘要: 生日大专星座 function birthday2constellation($birthday=''){ $month = substr($birthday,5,2);//截取月 $day = substr($birthday,8,2);//截取日 $day = intval($day); $mo 阅读全文

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

ThinkPHP下载文件/删除文件(或路径)

摘要: 下载文件 function download($url='',$savePath=''){ $fileName=array_pop(str2arr($url,'/')); $localUrl='./upload/'.$savePath.'/'.$fileName; (new \Org\Net\Htt 阅读全文

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

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页

导航