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