摘要: 1、在plugins目录下新建terminalToggle.js,写入以下代码 (function () { let sUserAgent = navigator.userAgent.toLowerCase(); let isIpad = sUserAgent.match(/ipad/i) == " 阅读全文
posted @ 2024-07-15 09:57 huihuihero 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、项目配置资源管理器不要用yarn,要用npm,不然可能会出问题 2、缩放适配 参考:https://blog.csdn.net/weixin_44599931/article/details/136539941 坑点:不要用postcss-px2rem,会和nuxt引入公共css冲突,改用pos 阅读全文
posted @ 2024-07-09 14:49 huihuihero 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 以下方式仅适用于vue3+webpack vue3+vite环境有相似问题网上可以搜到,如下 https://blog.csdn.net/qq_40606563/article/details/132293376 https://blog.csdn.net/krico233/article/deta 阅读全文
posted @ 2024-06-25 16:04 huihuihero 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 如题,不知道哪个版本开始的。text标签不能用v-html渲染,会失效。 坑的是,官方的uni-notice-bar组件,里面用了标签v-html渲染,所以此组件出现了不渲染文本的问题,所以4.15版本的uni-notice-bar组件不要用 阅读全文
posted @ 2024-06-18 19:50 huihuihero 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 参考方法 https://blog.csdn.net/sun12356499514452248/article/details/128518711 组件代码 <template> <div class="ks-audio"> <div class="audio-wrapper"> <van-slid 阅读全文
posted @ 2024-05-29 10:15 huihuihero 阅读(56) 评论(0) 推荐(0) 编辑
摘要: https://better-scroll.github.io/docs/zh-CN/guide 阅读全文
posted @ 2024-02-28 10:38 huihuihero 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 问题描述 此组件的获焦和失焦事件,在第一次执行获焦方法后,主动点击失焦。然后再执行获焦方法,会发现本次的获焦方法未生效。流程如下 <uni-easyinput ref="inputElem" v-model="value" /> const inputElem = ref(null) //step1 阅读全文
posted @ 2024-02-22 16:03 huihuihero 阅读(429) 评论(2) 推荐(2) 编辑
摘要: https://blog.csdn.net/weixin_48674314/article/details/129093224 阅读全文
posted @ 2024-01-30 11:23 huihuihero 阅读(240) 评论(0) 推荐(0) 编辑
摘要: <div class="container"> <div class="item">1</div> <div class="item">2</div> <div class="item">3</div> <div class="item">4</div> <div class="item">5</d 阅读全文
posted @ 2024-01-29 16:49 huihuihero 阅读(44) 评论(0) 推荐(0) 编辑
摘要: cache.js /** * 存储数据 * key: 缓存的键名,必填 * value: 缓存的值,选填 * * when: 缓存的过期时间,选填: * 【1】传入具体秒数时(单位必须为秒),到期后清除; * 【2】传入单词 forever时,永不清除; * 【3】传入单词 once时,获取一次后清 阅读全文
posted @ 2024-01-25 16:33 huihuihero 阅读(83) 评论(0) 推荐(0) 编辑