会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mr.木易
博客园
首页
新随笔
联系
订阅
管理
2023年4月4日
PHP 实现动态实时输出
摘要: #设置执行时间不限时 set_time_limit(0); #清除并关闭缓冲,输出到浏览器之前使用这个函数。ob_end_clean(); #控制隐式缓冲泻出,默认off,打开时,对每个 print/echo 或者输出命令的结果都发送到浏览器。ob_implicit_flush(1); header
阅读全文
posted @ 2023-04-04 10:15 Mr.木易
阅读(82)
评论(0)
推荐(0)
2022年11月24日
uniapp 先执行onLaunch,再执行onLoad
摘要: 问题描述 我们在用 uni-app 开发前端项目时,会遇到需要在 onLaunch 中请求接口返回结果,并且此结果在项目各个页面的 onLoad 中都有可能使用到的需求,比如微信小程序在 onLaunch 中进行登录后取得 openid 并获得 token,项目各页面需要带上该 token 请求其他
阅读全文
posted @ 2022-11-24 15:41 Mr.木易
阅读(667)
评论(0)
推荐(1)
2022年6月29日
vue或者uniapp开发H5 hsitory模式下刷新404问题
摘要: linux配置加入 location / { try_files $uri $uri/ /index.html; }
阅读全文
posted @ 2022-06-29 18:22 Mr.木易
阅读(190)
评论(0)
推荐(0)
2022年6月13日
Linux进程管理工具 Supervisor 配置及常用命令
摘要: 第一步:vi /etc/supervisord.conf第二步:[program:parking]process_name=%(program_name)s_%(process_num)02dcommand=/usr/bin/php /home/wwwroot/t/parking/think que
阅读全文
posted @ 2022-06-13 10:41 Mr.木易
阅读(135)
评论(0)
推荐(0)
2022年5月30日
PHP 通过Spreadsheet导出Excel文件
摘要: 导出方法 $export = new Export(); $list = []; $expCellName = [ 'order_id' => 'Id', 'order_sn' => '母订单号', 'jd_order_id' => '子订单号', 'status_text' => '订单状态',
阅读全文
posted @ 2022-05-30 10:37 Mr.木易
阅读(701)
评论(0)
推荐(0)
2021年12月9日
将小程序scene中的字符串转为对象
摘要: sceneToObject:function(scene){ scene = decodeURIComponent(scene); let ret = {} let regParam = /([^&=]+)=([\w\W]*?)(&|$|#)/g let strParam = scene; let
阅读全文
posted @ 2021-12-09 17:11 Mr.木易
阅读(410)
评论(0)
推荐(0)
2021年11月22日
PHP校验身份证是否合法
摘要: <?php namespace fast; /** * 校验身份证 */ class IdentityCard { /** * 校验身份证号是否合法 * @param string $num 待校验的身份证号 * @return bool */ public static function isVa
阅读全文
posted @ 2021-11-22 17:53 Mr.木易
阅读(136)
评论(0)
推荐(0)
2021年3月17日
英镑像素转换
摘要: 1磅==>4像素, PPI=288 2磅==>5像素, PPI=180 3磅==>7像素, PPI=168 4磅==>8像素, PPI=144 5磅==>9像素, PPI=129.6 6磅==>10像素, PPI=120 7磅==>11像素, PPI=113.14285714286 8磅==>12像
阅读全文
posted @ 2021-03-17 14:48 Mr.木易
阅读(800)
评论(0)
推荐(0)
2021年2月3日
小程序路径存入数据库
摘要: $data=json_decode(file_get_contents('./wxapp.json'),true); $insert=[]; foreach ($data as $item){ $insert[]=[ 'name'=>$item['name'], 'page'=>$item['pat
阅读全文
posted @ 2021-02-03 20:54 Mr.木易
阅读(119)
评论(0)
推荐(0)
2020年11月10日
小程序中实现websocket
摘要: 服务器配置 server { listen 443 ssl; server_name weixin.techeek.cn; index index.php index.html index.htm; root /usr/share/nginx/html; ssl_certificate /home/
阅读全文
posted @ 2020-11-10 16:54 Mr.木易
阅读(392)
评论(1)
推荐(0)
下一页
公告