摘要: // 同步储存和读取 // 存 uni.setStorageSync('name','LZJAPYX,ZDL'); // name为键名 LZJAPYX,ZDL为健值 // 取 uni.getStorageSync('name') // 以健名取健值 // 删除 uni.removeStorageS 阅读全文
posted @ 2021-12-09 14:36 辉仔的前端之路 阅读(2927) 评论(0) 推荐(0)
摘要: uni.getSystemInfo({ success: function(res) { // res - 各种参数 console.log(res.windowWidth); // 屏幕的宽度 let info = uni.createSelectorQuery().select(".search 阅读全文
posted @ 2021-12-09 09:32 辉仔的前端之路 阅读(1308) 评论(0) 推荐(0)
摘要: let height = wx.getSystemInfoSync().windowHeight; let width = wx.getSystemInfoSync().windowWidth; 阅读全文
posted @ 2021-12-09 09:28 辉仔的前端之路 阅读(351) 评论(0) 推荐(0)