摘要: switch(value){ case 'test':{ const VarName = 'test' break } case 'test2':{ const VarName = 'test2' break } } MDN: switch 语句内的块级作用域 阅读全文
posted @ 2021-03-22 17:21 letleon 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 最新方法 自己制作Switch大气层SDFile - letleon - 博客园 (cnblogs.com) 手动配置出Switch所需的SDFiles(大气层) 误点了升级...折腾记录 获取最新大气层https://github.com/Atmosphere-NX/Atmosphere/rele 阅读全文
posted @ 2021-02-17 18:17 letleon 阅读(1447) 评论(0) 推荐(0) 编辑
摘要: .container{ display: flex; flex-flow: row nowrap; align-items: center; justify-content: space-between; //justify-content: space-evenly; } .container:: 阅读全文
posted @ 2021-01-29 23:06 letleon 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 设置-系统-多任务处理-Alt+Tab 出自 2楼 瀪滺:edge 怎么不让他在 alt + tab 上显示 阅读全文
posted @ 2020-12-16 14:54 letleon 阅读(13069) 评论(0) 推荐(1) 编辑
摘要: 1 let arrayBuffer = fsm.readFileSync(res.tempFilePath) 2 let unit8Arr = new Uint8Array(arrayBuffer) 3 let encodedString = String.fromCharCode.apply(nu 阅读全文
posted @ 2020-12-16 11:59 letleon 阅读(1987) 评论(0) 推荐(0) 编辑
摘要: 安装 shellinabox 账号秘密为路由后台账号密码 创建配置文件 vi /jffs/dnsmasq.conf.add 内容:addn-hosts=/jffs/configs/hosts 创建 hosts 文件 /jffs/configs/hosts 内容:你需要设置的hosts 重启 dns 阅读全文
posted @ 2020-12-13 17:04 letleon 阅读(3675) 评论(0) 推荐(0) 编辑
摘要: <mp-half-screen-dialog bindbuttontap="buttontap" show="{{RaterPanel}}" maskClosable="{{false}}" title="测试标题B" //只有删除title后slot才会生效 subTitle="测试标题B的副标题 阅读全文
posted @ 2020-12-08 22:17 letleon 阅读(1759) 评论(1) 推荐(0) 编辑
摘要: 1 Page({ 2 data: { 3 TestData: '0' 4 }, 5 6 TestData: '1', 7 8 onLoad () { 9 console.log(this.data.TestData) 10 console.log(this.TestData) 11 12 this. 阅读全文
posted @ 2020-10-25 15:12 letleon 阅读(704) 评论(0) 推荐(0) 编辑
摘要: .scroll-height{ height: 80vh; } 给 scroll-view 加个class,高度为80vh(页面高度的80%) 阅读全文
posted @ 2020-10-11 12:46 letleon 阅读(809) 评论(0) 推荐(0) 编辑
摘要: /* 修改dialog 高度75% 为 80% */ .weui-half-screen-dialog { max-height: 80% !important; } 值得注意的是,哪个页面显示Dialog组件,就把样式放到哪个页面的wxss内! 阅读全文
posted @ 2020-10-11 12:43 letleon 阅读(1837) 评论(1) 推荐(0) 编辑