11 2023 档案

摘要:export function onReload() { let currentPath = getCurrentPages()?.pop()?.$page?.fullPath || '' if (currentPath) { uni.redirectTo({ url: currentPath }) 阅读全文
posted @ 2023-11-28 09:27 huihuihero 阅读(88) 评论(0) 推荐(0) 编辑
摘要:终版:cache.js /** * 存储数据 * key: 缓存的键名,必填 * value: 缓存的值,选填 * * when: 缓存的过期时间,选填: * 【1】传入具体秒数时(单位必须为秒),到期后清除; * 【2】传入单词 forever时,永不清除; * 【3】传其他值或不传值时,App关 阅读全文
posted @ 2023-11-24 15:23 huihuihero 阅读(678) 评论(0) 推荐(0) 编辑
摘要:onLoad(){ // #ifdef APP-PLUS var height = 0; uni.getSystemInfo({ success: (sysinfo) => { height = sysinfo.windowHeight; }, complete: () => {} }); var 阅读全文
posted @ 2023-11-22 16:41 huihuihero 阅读(323) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示