摘要: @media (prefers-color-scheme: dark) { body { background-color: #000; color: #fff; } } 阅读全文
posted @ 2020-07-28 14:44 kvker 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 注意: oss直传request与global对象冲突 <script src="http://gosspublic.alicdn.com/aliyun-oss-sdk-6.9.0.min.js"></script> let client = new OSS({ accessKeyId: 'xxx' 阅读全文
posted @ 2020-07-28 14:43 kvker 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Component({ options: { addGlobalClass: true } }) 阅读全文
posted @ 2020-07-28 14:41 kvker 阅读(749) 评论(0) 推荐(0) 编辑
摘要: 卸载之前的nodejs 第一步:下载nvm并安装 (推荐使用nvm-setup.zip) https://github.com/coreybutler/nvm-windows/releases 第二步:使用nvm命令切换node版本 nvm // 会提示nvw下的相关命令 nvm ls // 查看已 阅读全文
posted @ 2020-07-28 14:40 kvker 阅读(506) 评论(0) 推荐(0) 编辑
摘要: let data = [] let keys = ['name', 'town', 'village', 'address', 'update_time_label', 'manager'] let str = '名字, 区划, 乡村, 详细地址, 更新时间, 管理单位/个人\n' for(let 阅读全文
posted @ 2020-07-28 14:38 kvker 阅读(247) 评论(0) 推荐(0) 编辑
摘要: <div id="toolbar"> <button class="ql-bold"></button> <button class="ql-italic"></button> <button class="ql-underline"></button> <select class="ql-size 阅读全文
posted @ 2020-07-28 14:37 kvker 阅读(1522) 评论(0) 推荐(0) 编辑
摘要: VSCode 安装插件 Tencent Serverless Toolkit for VS Code 部署函数 使用API网管触发器, 注意event数据格式不同, 推荐解析方式event.body ? JSON.parse(event.body) : event, 支持测试与API网关 前端使用前 阅读全文
posted @ 2020-07-28 14:35 kvker 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 创建一个请求,然后查看返回的content-length img.src.length * 0.75 canvas转base64后 阅读全文
posted @ 2020-07-28 14:34 kvker 阅读(426) 评论(0) 推荐(0) 编辑
摘要: import Quill from 'quill' const BlockEmbed = Quill.import('blots/block/embed') class VideoBlot extends BlockEmbed { static create(value) { let node = 阅读全文
posted @ 2020-07-28 14:30 kvker 阅读(1860) 评论(1) 推荐(1) 编辑
摘要: Flex版本 .super { display: flex; width: 100%; overflow-x: scroll; white-space: nowrap; } .sub { width: 200px; height: 50px; flex-basis: 200px; 子容器基准大小 f 阅读全文
posted @ 2020-07-28 14:29 kvker 阅读(170) 评论(0) 推荐(0) 编辑