摘要: Auto Complete Tag 集合了Auto Close Tag 和 Auto Rename Tag Auto Close Tag:自动补全结束标签 Auto Rename Tag:修改前面的html tag后面</>里面的也会同步修改 只需要装一个插件就能得到之前2个插件的能力 Commen 阅读全文
posted @ 2024-04-01 13:35 Chaplink 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Pinia和Vuex区别 大致总结: 支持选项式api和组合式api写法 pinia没有mutations,只有:state、getters、actions pinia分模块不需要modules(之前vuex分模块需要modules) TypeScript支持很好 自动化代码拆分 pinia体积更小 阅读全文
posted @ 2024-01-29 11:34 Chaplink 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 项目运行h5的时候都没有问题,但是要运行到微信开发者工具的时候打包报 11:40:54.480 Specifically the "esbuild-darwin-arm64" package is present but this platform 11:40:54.480 needs the "e 阅读全文
posted @ 2024-01-18 11:05 Chaplink 阅读(396) 评论(0) 推荐(0) 编辑
摘要: react在渲染时会触发table里面的rander函数下的onClick方法 我的onClick是触发Modal 弹窗 且close后还是会一直触发Modal弹窗 初始代码如下 { title: '操作', key: 'operation', fixed: 'right', width: 100, 阅读全文
posted @ 2023-12-21 10:52 Chaplink 阅读(229) 评论(0) 推荐(0) 编辑
摘要: javaScript中存在小数点精度丢失的问题是由于其使用的浮点数表示方式。JavaScript采用的是双精度浮点数表示法,也称为IEEE 754标准,它使用64位来表示一个数字,其中52位用于表示有效数字,而其他位用于表示符号、指数和特殊情况。 由于使用有限的位数来表示无限的小数,JavaScri 阅读全文
posted @ 2023-12-18 09:43 Chaplink 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 点进去看了一下uni-icons的源码 @click的方法其实是他假装是个原生click的方法,执行 emit(click)给父组件 可以理解为uni-icons只至此click事件 不支持click.stop事件 解决办法也很简单 包一层view <view @click.stop="editFn 阅读全文
posted @ 2023-12-02 00:21 Chaplink 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 在用vite创建react的时候 install完成后输入pnpm run dev 突然蹦出 UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??=' 一脸闷逼,百度了一下。哦吼, 逻辑空赋值(??=)是ES2021的 阅读全文
posted @ 2023-11-22 10:38 Chaplink 阅读(5283) 评论(0) 推荐(0) 编辑
摘要: 在安装brew的时候根据https://brew.sh/ 上的提示在终端上键入 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 然后提示 curl: (7) 阅读全文
posted @ 2023-11-04 01:00 Chaplink 阅读(618) 评论(0) 推荐(0) 编辑
摘要: //vue2 optionsAPI data:{ timeout:null }, methods:{ debounceFn(val){ if(this.timeout !== null){ clearTimeout(this.timeout); } this.timeout = setTimeout 阅读全文
posted @ 2023-10-13 14:50 Chaplink 阅读(52) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="text">hello</div> </template> <script setup> import { ref } from "vue"; const customTheme = ref({ color: 'red' }); </script> <s 阅读全文
posted @ 2023-05-09 14:54 Chaplink 阅读(126) 评论(0) 推荐(0) 编辑