上一页 1 2 3 4 5 6 ··· 19 下一页

2023年3月25日

PHP二维数组排序|PHP二维数组去重

摘要: 二维数组排序 function array_sort($arr, $keys, $order = 0) { if (!is_array($arr)) { return false; } $keysvalue = array(); foreach ($arr as $key => $val) { $k 阅读全文

posted @ 2023-03-25 18:00 小馬過河﹎ 阅读(25) 评论(0) 推荐(0)

2023年3月13日

textarea中禁止使用换行(回车)

摘要: <textarea name="jfcate_name" rows="10" class="layui-textarea" onkeydown="if(event.keyCode==13)return false;">{$row['jfcate_name']}</textarea> <textare 阅读全文

posted @ 2023-03-13 10:17 小馬過河﹎ 阅读(1400) 评论(0) 推荐(0)

2023年2月28日

php json_encode 斜杠 反斜杠 转义处理

摘要: $data = str_replace("\\\\n", "\\n", \jsonEncode($data)); // \\n转为\n $data = str_replace("\\/", "/", json_encode($data)); 阅读全文

posted @ 2023-02-28 08:14 小馬過河﹎ 阅读(373) 评论(0) 推荐(0)

2023年2月27日

ThinkPHP获取当前url

摘要: $httpType = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO 阅读全文

posted @ 2023-02-27 09:46 小馬過河﹎ 阅读(294) 评论(0) 推荐(0)

2023年2月20日

js获取url中的查询参数

摘要: // 获取url中query // return {cate_id: '1', street_id: '0'} function getParams() { var url = location.search //获取url中"?"符后的字串 var theRequest = new Object( 阅读全文

posted @ 2023-02-20 16:13 小馬過河﹎ 阅读(63) 评论(0) 推荐(0)

2023年2月18日

layui多图片上传

摘要: <div> <button type="button" class="layui-btn" id="mulUpload">图片上传</button> <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px 阅读全文

posted @ 2023-02-18 10:36 小馬過河﹎ 阅读(170) 评论(0) 推荐(0)

2022年12月24日

ThinkPHP接收header自定义参数

摘要: // 请求拦截,配置Token等参数 Vue.prototype.$u.http.interceptor.request = (config) => { config.header['content-type'] = 'application/x-www-form-urlencoded' confi 阅读全文

posted @ 2022-12-24 10:36 小馬過河﹎ 阅读(814) 评论(0) 推荐(0)

2022年12月15日

浏览器打开微信小程序

摘要: function h5() { $wx = new Wx('appId', 'appSecret'); // \dump($wx->getAccessToken()); $url = 'https://api.weixin.qq.com/wxa/generatescheme?' . \http_bu 阅读全文

posted @ 2022-12-15 11:20 小馬過河﹎ 阅读(354) 评论(0) 推荐(0)

2022年12月13日

mysql去重保留1条记录

摘要: delete from `wuye` where wuye_id in ( select * from ( select wuye_id from `wuye` where wuye_name in ( select wuye_name from `wuye` group by wuye_name 阅读全文

posted @ 2022-12-13 11:42 小馬過河﹎ 阅读(23) 评论(0) 推荐(0)

2022年11月1日

php不缓存直接输出

摘要: ini_set('max_execution_time', 600); header('X-Accel-Buffering:no'); ob_end_flush(); $l_zhen = \M('zhen')->select(); foreach ($l_zhen as $zhen) { \dump 阅读全文

posted @ 2022-11-01 10:40 小馬過河﹎ 阅读(64) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 19 下一页

导航