摘要: 在onShow 中调用 wx.hideHomeButton() onShow() { wx.hideHomeButton() }, 阅读全文
posted @ 2020-07-15 09:54 郑正正 阅读(2335) 评论(1) 推荐(0) 编辑
摘要: height: uni.getSystemInfoSync().screenHeight 阅读全文
posted @ 2020-07-15 09:46 郑正正 阅读(5216) 评论(0) 推荐(0) 编辑
摘要: pages.json文件中与pages同级 { "pages": [{ "path": "pages/index/index", "style": { ...} }, { "path": "pages/login/login", "style": { ...} }], "subPackages": 阅读全文
posted @ 2020-07-14 17:24 郑正正 阅读(1598) 评论(0) 推荐(0) 编辑
摘要: line-height: normal; 阅读全文
posted @ 2020-07-09 09:53 郑正正 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: 调取手机摄像头 <view @click="scan">扫码验证</view> scan() { //扫码验证 var _this = this; uni.scanCode({ onlyFromCamera: true, //为true只允许相机扫码,不加允许相册扫码 success: functi 阅读全文
posted @ 2020-07-08 17:51 郑正正 阅读(5413) 评论(0) 推荐(5) 编辑
摘要: 与methods同级,可以直接调取小程序右上角的分享 onShareAppMessage(res) { if (res.from 'button') {// 来自页面内分享按钮 console.log(res.target) } return { title: '分享的标题', path: '分享的 阅读全文
posted @ 2020-07-04 09:34 郑正正 阅读(7958) 评论(0) 推荐(0) 编辑
摘要: let arr = res.data.data.list this.userInfo = arr.map((item,index)=>{ return Object.assign(item, ) }) 阅读全文
posted @ 2020-07-02 17:34 郑正正 阅读(2013) 评论(0) 推荐(0) 编辑
摘要: 点击确认保存,返回上一层 sure() { // uni.navigateBack({ // url: '../add_action/add_action?id=' + this.istab // }) var pages = getCurrentPages(); var prevPage = pa 阅读全文
posted @ 2020-06-18 16:15 郑正正 阅读(7716) 评论(0) 推荐(0) 编辑
摘要: 使用Font Spider 原理 爬行本地 html 文档,分析所有 css 语句 记录@font face语句声明的字体,并且记录使用该字体的 css 选择器 通过 css 选择器的规则查找当前 html 文档的节点,记录节点上的文本 找到字体文件并删除没被使用的字符 编码成跨平台使用的字体格式 阅读全文
posted @ 2020-04-18 17:22 郑正正 阅读(372) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/1909304/202004/1909304-20200418170334943-57263523.png) 阅读全文
posted @ 2020-04-18 17:04 郑正正 阅读(364) 评论(0) 推荐(0) 编辑
Live2D