摘要: 自适应布局单位一般多用rem. rem是以html字体大小为1rem的大小,html为16px,1rem则为16px。rem之所以能自适应就是根据屏幕大小去用js重新设置的字体大小。 算法公式为: html字体大小=(js获取到的当前设备宽度 / 设计图宽度)* 设计图宽度下1rem大小 对应自动转 阅读全文
posted @ 2025-04-22 08:07 闫奕城 阅读(21) 评论(0) 推荐(0)
摘要: 微信 开发者 工具组件 :https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html 小程序开发者https://mp.weixin.qq.com/wxamp/home/guide?lang=zh_CN&token=1 阅读全文
posted @ 2025-04-22 08:05 闫奕城 阅读(9) 评论(0) 推荐(0)
摘要: https://answer.baidu.com/answer/land?params=Q7Tu38qfIosbX6Mm%2F8C3V7bTB0wozgcQxoGs4Y4cUg8sj9MruNqxx2VvodAianVYs0J9L8HBZ%2F%2FiDmko0qtVGbY%2BuJ8ULRYE9v 阅读全文
posted @ 2025-04-22 08:04 闫奕城 阅读(53) 评论(0) 推荐(0)
摘要: 小程序本地存储是指在小程序中使用的API将数据村吃在用户的设备上,以便小程序运行和下次启动时快速的读取这些数据。 小程序本地存储分为以下两种:同步API、异步API 同步API:存储 :wx.setStorageSync(); 获取:wx.getStorageSync() 删除:wx.removeS 阅读全文
posted @ 2025-04-22 08:03 闫奕城 阅读(22) 评论(0) 推荐(0)
摘要: 在小程序中实现页面跳转到 方式有两种: 1、声明式导航:navigator组件 2、编程式导航:使用小程序提供的API 变成屎导航API : wx.navigate To():保留当前页面,跳转到应用内的某个页面,但是不能跳到tabbar页面 wx.redirectTo():关闭当前页面,跳转到应用 阅读全文
posted @ 2025-04-22 08:01 闫奕城 阅读(14) 评论(0) 推荐(0)
摘要: ECharts 大屏适配案例 阅读全文
posted @ 2025-06-22 17:39 闫奕城 阅读(6) 评论(0) 推荐(0)
摘要: 解决因加载重组件过多,导致渲染时间过长的问题: html: Js: import {onUnmounted,ref} from 'vue'; export function useDefer(maxCount =100){ const frameCOunt = ref(1);//加载第一帧,必须用响 阅读全文
posted @ 2025-06-09 15:14 闫奕城 阅读(9) 评论(0) 推荐(0)
摘要: 移动端 Vant https://youzan.github.io/vant Cube UI https://didi.github.io/cube-ui Mint UI http://mint-ui.github.io PC 端 Element UI https://element.eleme.c 阅读全文
posted @ 2025-05-29 17:12 闫奕城 阅读(56) 评论(0) 推荐(0)
摘要: 相关 API: this.$router.push(path): 相当于点击路由链接(可以返回到当前路由界面) this.$router.replace(path): 用新路由替换当前路由(不可以返回到当前路由界面) this.$router.back(): 请求(返回)上一个记录路由 this.$ 阅读全文
posted @ 2025-05-29 17:05 闫奕城 阅读(19) 评论(0) 推荐(0)
摘要: 第三方动画库:vue第三方动画库 https://animate.style 安装命令 npm install animate.css 安装成功之后在页面引入即可,在使用的组件页面安装就可以 手册地址:https://animate.style 阅读全文
posted @ 2025-04-21 19:59 闫奕城 阅读(25) 评论(0) 推荐(0)