摘要: 横向无限滚动,在距离最右侧100px,开始加载数据 HTML <ul v-scroll="handleScrollRight" class="list" > <li v-for="(item, index) in data" :key="index" class="item" @click.stop 阅读全文
posted @ 2025-04-25 17:30 生命在于折腾Up 阅读(65) 评论(0) 推荐(0)
摘要: 分享的page需要增加 .html,如小程序地址为:pages/home/index,则需要将分享的地址改为 pages/home/index.html 阅读全文
posted @ 2025-03-05 17:28 生命在于折腾Up 阅读(23) 评论(0) 推荐(0)
摘要: 是否遇到登录账户是管理员,但是仍然提示需要管理员才能删除文件夹,使用windos11自带的命令行工具可以解决。 搜索终端,右键,使用管理员运行 复制要删除文件夹的路径比如,要删除桌面的 test-del 文件夹 执行命令 rmdir 路径 文件夹内容多,可能提示,按Y就删除了 阅读全文
posted @ 2025-03-03 17:04 生命在于折腾Up 阅读(124) 评论(0) 推荐(0)
摘要: 当你在TypeScript中使用 for...in 循环遍历一个对象时,你可能会碰到这样的类型错误,这是因为 TypeScript 静态类型检查的规则,需要明确的知道你正在访问的对象属性的类型。 对于这种情况,你可以使用类型断言(Type Assertion)来明确你所知道的更具体的类型 // 假设 阅读全文
posted @ 2024-04-10 16:56 生命在于折腾Up 阅读(529) 评论(0) 推荐(0)
摘要: 在Mac上安装好之后,在系统偏好设置里找到mysql,点击并选择启动mysql; 打开终端面板,输入:mysql -u root -p 问题来了,因为之后显示的是:-bash: mysql: command not found (这是什么意思?怎么办?怎么办?多幸运你看到这篇文章了,不用像我一样花很 阅读全文
posted @ 2024-01-09 00:43 生命在于折腾Up 阅读(264) 评论(0) 推荐(0)
摘要: if (typeof __wxConfig == "object"){ let version = __wxConfig.envVersion; console.log("当前环境:" + version) if (version == "develop"){ //工具或者真机 开发环境 } els 阅读全文
posted @ 2023-12-19 17:53 生命在于折腾Up 阅读(74) 评论(0) 推荐(0)
摘要: 在 postcssPxToViewport 配置中加上 propList postcssPxToViewport({ propList: ['*', '!transform-origin'] }) 阅读全文
posted @ 2023-10-18 17:20 生命在于折腾Up 阅读(44) 评论(0) 推荐(0)
摘要: 加上一下两个属性 :observer="true" :observer-parents="true" 阅读全文
posted @ 2023-10-17 14:12 生命在于折腾Up 阅读(90) 评论(0) 推荐(0)
摘要: 运行以下命令 iex "& {$(irm get.scoop.sh)} -RunAsAdmin" 阅读全文
posted @ 2023-06-26 10:59 生命在于折腾Up 阅读(2371) 评论(0) 推荐(2)
摘要: const arr = [1, 5, 3, 7, 9, 21, 33, 18, 12, 44, 43, 22, 55, 66, 65] const result = arr => { // 存储最小值 let minMax = 0 // 存储最大值 let max = 0 arr.forEach(i 阅读全文
posted @ 2023-05-17 14:11 生命在于折腾Up 阅读(74) 评论(0) 推荐(0)