摘要: Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 阅读全文
posted @ 2026-04-24 14:35 南风晚来晚相识 阅读(4) 评论(0) 推荐(0)
摘要: 判断是否为数字(不够完美) function isNumber(value) { return typeof value 'number' && !isNaN(value); } // 测试 isNumber(123); // true isNumber(0); // true isNumber(N 阅读全文
posted @ 2026-04-16 19:16 南风晚来晚相识 阅读(95) 评论(2) 推荐(1)
摘要: 下拉框的item变成一个对象并且多出额外的值 更改下拉框的数据源,在赋值的时候,本来应该点value时,但是没有点value。 会造成item的值变成一个数组,并且这个数组还会多出额外的值,本来应该是一个对象的。 复现上述场景的代码 <template> <div class="about"> <e 阅读全文
posted @ 2026-04-09 22:35 南风晚来晚相识 阅读(5) 评论(0) 推荐(0)
摘要: 运行的出现以下报错信息 Module build failed: Error: Node Sass does not yet support your current environment: 的解决办法 我明明记得,我的node版本是14的 结果使用nvm进行查看 发现node版本不知道为啥变成了 阅读全文
posted @ 2026-03-23 14:28 南风晚来晚相识 阅读(6) 评论(0) 推荐(0)
摘要: push代码出现下面的错误 hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repos 阅读全文
posted @ 2026-03-09 11:55 南风晚来晚相识 阅读(86) 评论(0) 推荐(0)
摘要: vite官网地址 https://cn.vitejs.dev/guide/assets Vite 默认不支持 require Vite 默认不支持 require, 但可以通过安装 vite-plugin-require-transform 插件来实现。 推荐优先使用 import 方式。 通过@符 阅读全文
posted @ 2026-03-08 20:36 南风晚来晚相识 阅读(143) 评论(0) 推荐(0)
摘要: uView Pro uView Pro 的由来 uView Pro 是在 uView 1.8.8 官方组件库基础上,采用 Vue3 全新语法彻底重构的 uni-app 生态框架。不同于市面上的其他 uView 框架等兼容 Vue3 的方案,uView Pro 并非简单兼容,而是对每一个组件和工具进行 阅读全文
posted @ 2026-02-26 09:21 南风晚来晚相识 阅读(21) 评论(0) 推荐(0)
摘要: clearTimeout 的行为 clearTimeout 是一个全局函数,它的参数是一个定时器 ID。 如果传入的 ID 是 null、undefined 或者无效的定时器 ID clearTimeout 不会抛出错误,而是静默忽略。 总结:clearTimeout(无效id || 0 || nu 阅读全文
posted @ 2026-02-09 10:05 南风晚来晚相识 阅读(20) 评论(0) 推荐(0)
摘要: 断点调试的在线地址 https://googlechrome.github.io/devtools-samples/debug-js/get-started 通过点击事件快速找到对应的代码 一定要点击进去哈。 如何给函数打断点 我们一般把断点打印中可能出现问题的哪一行代码 BreakPoints就是 阅读全文
posted @ 2026-01-23 09:20 南风晚来晚相识 阅读(23) 评论(0) 推荐(0)
摘要: never[]类型的说明 在TS中,空数组[]如果没有上下文类型,会被推断为never[]类型。 因为在TS中,数组类型是可变元组,而空数组在没有其他信息的情况下,无法确定其元素类型。 因此TS会将其推断为never[],表示这个数组不可能有元素(因为never类型表示不可能存在的类型)。 下面的情 阅读全文
posted @ 2026-01-15 22:24 南风晚来晚相识 阅读(25) 评论(0) 推荐(0)