上一页 1 2 3 4 5 6 ··· 40 下一页
摘要: let count = 0, maxCount = 3; function event() { count += 1; console.log(count); return count < maxCount; } let prev = 0; const t = 1000; // 1秒 functio 阅读全文
posted @ 2022-08-17 10:08 Ajanuw 阅读(372) 评论(0) 推荐(0)
摘要: <div></div> div { width: 100px; height: 100px; } @media (width <= 400px) { /* 屏幕宽度 小于等于400px 时 */ div { background-color: red; } } @media (400px <= wi 阅读全文
posted @ 2022-08-12 08:47 Ajanuw 阅读(55) 评论(0) 推荐(0)
摘要: 枚举本地字体 <button id="btn">Get Local Font</button> document .getElementById("btn") .addEventListener("click", async function () { const pickedFonts = awa 阅读全文
posted @ 2022-07-28 10:20 Ajanuw 阅读(626) 评论(0) 推荐(0)
摘要: class UpperCaseTransformStream { constructor() { return new TransformStream({ transform(chunk, controller) { controller.enqueue(chunk.toUpperCase()); 阅读全文
posted @ 2022-07-28 09:53 Ajanuw 阅读(417) 评论(0) 推荐(0)
摘要: ## 编译`libvips`前需要安装的其他包 centos ``` yum install gcc-c++ glib2-devel libpng-devel libjpeg-devel libtiff-devel expat-devel fftw3-devel libimagequant-deve 阅读全文
posted @ 2022-07-26 11:27 Ajanuw 阅读(1027) 评论(0) 推荐(0)
摘要: 生成 Git 提交信息 1. 查看文件变更 2. 使用中文生成 `git commit` 需要的提交消息 3. 生成一个英文的分支名称。 - 不要运行`git add` - 不要运行`git commit` ## Git Commit 消息提交规范 一、提交格式 <type>(<scope>): < 阅读全文
posted @ 2022-03-28 09:23 Ajanuw 阅读(99) 评论(0) 推荐(0)
摘要: multipart/form-data 通常是多部分实体,需要一直阻塞到数据读取到和 Content-Length 大小一样为止。 一个简单的multipart/form-data请求: 第一次收到的实体数据信息: [src\lib.rs:225] &packet.len() = 333 [src\ 阅读全文
posted @ 2022-03-12 11:00 Ajanuw 阅读(231) 评论(0) 推荐(0)
摘要: 文件推流测试 > 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 拉流 阅读全文
posted @ 2022-01-15 15:30 Ajanuw 阅读(135) 评论(0) 推荐(0)
摘要: 重复跳转的时候发送新的date this.$router.push(`/messages?date=${Date.now()}`).catch(() => {}); 页面内监听路由变化 ... watch: { $route(to, from) { if (to.query.date) { this 阅读全文
posted @ 2021-12-03 11:44 Ajanuw 阅读(1125) 评论(0) 推荐(0)
摘要: <el-date-picker type="datetimerange" v-model="datetime" :picker-options="pickerOptions" start-placeholder="开始日期" end-placeholder="结束日期" /> data() { re 阅读全文
posted @ 2021-09-15 14:12 Ajanuw 阅读(253) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 40 下一页