wsl ubuntu 安装 oh-my-zsh

安装zshsudo apt install git zsh -y 安装oh-my-zsh码云地址https://gitee.com/mirrors/oh-my-zsh执行其中的tools/install.sh如果无法clone github代码可以尝试把ip写入host安装自动补全git clone https://gitee.com/mirrors/zsh-autosuggestions....

继续阅读 »

打包phar直接运行

准备下载swoole cli,其中有一个pack-sfx.phpphp.ini中有个phar.readonly = Off打包phar<?php // 禁止缓冲输出,以便立即看到错误信息 ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_report...

继续阅读 »

php 流式请求

原生curl$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->chatService->api); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HTTPH...

继续阅读 »

小程序 animation 失效 高度闪烁

animation无效uniapp开发时候 v-show和animation一起使用必须在nextTick中执行动画,否则无效this.$nextTick(() => { this.showStar() })该表的值必须在style中写上animation高度闪一次小程序性能较差,animation本质上使用style内联导致高度有一次闪烁,可以使用内联的style写死widt...

继续阅读 »