摘要:
class UpperCaseTransformStream { constructor() { return new TransformStream({ transform(chunk, controller) { controller.enqueue(chunk.toUpperCase()); 阅读全文
摘要:
## 编译`libvips`前需要安装的其他包 centos ``` yum install gcc-c++ glib2-devel libpng-devel libjpeg-devel libtiff-devel expat-devel fftw3-devel libimagequant-deve 阅读全文
摘要:
提交类型 | Emoji | 初始提交。 | 🎉 :tada: 版本标签 | 🔖 :bookmark: 新功能 | ✨ :sparkles: 错误修正 | 🐛 :bug: 文档 | 📚 :books: 记录源代码 | 💡 :bulb: 性能提升 | 🐎 :racehorse: 添加测试 阅读全文
摘要:
multipart/form-data 通常是多部分实体,需要一直阻塞到数据读取到和 Content-Length 大小一样为止。 一个简单的multipart/form-data请求: 第一次收到的实体数据信息: [src\lib.rs:225] &packet.len() = 333 [src\ 阅读全文
摘要:
文件推流测试 > ffmpeg -re -i C:\Users\16418\Desktop\test.mp4 -vcodec copy -loop -1 -c:a aac -b:a 160k -ar 44100 -strict -2 -f flv rtmp:127.0.0.1/live/bbb 拉流 阅读全文
摘要:
重复跳转的时候发送新的date this.$router.push(`/messages?date=${Date.now()}`).catch(() => {}); 页面内监听路由变化 ... watch: { $route(to, from) { if (to.query.date) { this 阅读全文
摘要:
<el-date-picker type="datetimerange" v-model="datetime" :picker-options="pickerOptions" start-placeholder="开始日期" end-placeholder="结束日期" /> data() { re 阅读全文
摘要:
全局配置 local 和 插件,通常在你的入口函数中调用 import dayjs from "dayjs"; import weekday from "dayjs/plugin/weekday"; import "dayjs/locale/zh-cn"; // config dayjs dayjs 阅读全文
摘要:
在创建单例时,你可能会偷懒创建下面这样的代码 class A { static ins: A; arr = []; constructor() { return (A.ins ??= this); } } 上面的代码能创建单例,但是你却发现编译后的es6代码却是这鸟样 class A { const 阅读全文
摘要:
uni.chooseImage... uni.getImageInfo({ src: res.tempFilePaths[0], success: (res) => { const blobUrl = res.path; const canvas = document.createElement(" 阅读全文