上一页 1 ··· 7 8 9 10 11 12 下一页

2020年4月15日

微信小程序-性能与体验优化

摘要: 合理设置可点击元素的影响区域大小 避免渲染页面耗时过长 避免执行脚本耗时过长 对于网络请求做必要的缓存以避免多余的请求 不要引入未被使用的wxss样式 文字的颜色与背景色搭配 一般美工都给设计好了 所有资源请求建议使用https 不使用废弃接口 避免过大的WXML节点数目 一个页面少于1000个WX 阅读全文

posted @ 2020-04-15 10:45 秃了头也不退休 阅读(287) 评论(0) 推荐(0) 编辑

2020年4月13日

微信小程序-调取上一页的方法

摘要: const pages=getCurrentPages() //取到上一个页面 const prevPage=pages[pages.length-2] prevPage.onPullDownRefresh() 阅读全文

posted @ 2020-04-13 11:34 秃了头也不退休 阅读(618) 评论(0) 推荐(0) 编辑

2020年4月10日

微信小程序-页面触发组件中的方法

摘要: selector对象 this.selectComponent('.lyric').update(event.detail.currentTime) 阅读全文

posted @ 2020-04-10 11:46 秃了头也不退休 阅读(984) 评论(0) 推荐(0) 编辑

微信小程序-从组件触发页面任务

摘要: 组件:第一个参数传入出发方法的名字,第二个参数传入需要传入的参数 this.triggerEvent('timeUpdate',{ currentTime }) 页面:bind:xxx, xxx为传入的方法 也可以直接bindxxx <l-progress-bar bindtimeUpdate="t 阅读全文

posted @ 2020-04-10 11:41 秃了头也不退休 阅读(513) 评论(0) 推荐(0) 编辑

微信小程序-引入iconfont图标

摘要: 1.网址 https://www.iconfont.cn/ 2.选择需要的图标加入购物车,然后加入项目 3.点击生成代码 4.复制链接,在游览器中进入链接,右键另存为 5. 将另存为的文件复制到根目录,把后缀改为wxss 6. 在app.wxss中引入iconfont文件 @import "./ic 阅读全文

posted @ 2020-04-10 11:35 秃了头也不退休 阅读(552) 评论(0) 推荐(0) 编辑

2020年3月31日

uni-app 登录

摘要: 微信小程序登录 在manifest.json中的源码视图下找到mp-weixin下的appid,填写申请到的开发者id "mp-weixin" : { "appid" : "xxxxxxxxxxxxxxx", "setting" : { "urlCheck" : false }, "usingCom 阅读全文

posted @ 2020-03-31 14:21 秃了头也不退休 阅读(718) 评论(0) 推荐(1) 编辑

2020年3月30日

uni-app 下拉刷新 上拉加载

摘要: 首先在page页面设置enablePullDownRefresh属性 激活下拉 { "path": "pages/index/index", "style": { "navigationBarTitleText": "uni-app", "enablePullDownRefresh":true } 阅读全文

posted @ 2020-03-30 16:40 秃了头也不退休 阅读(16886) 评论(0) 推荐(0) 编辑

2020年3月28日

uni-app 图片选择及文件上传

摘要: <template> <view> <button @click="img" type="primary">button</button> <progress :percent="percent" stroke-width="10" /> </view> </template> <script> v 阅读全文

posted @ 2020-03-28 15:45 秃了头也不退休 阅读(6683) 评论(1) 推荐(0) 编辑

2020年3月27日

uni-app 可滚动视图区域

摘要: <template> <view> <scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll" class="scroll-y" 阅读全文

posted @ 2020-03-27 16:10 秃了头也不退休 阅读(2956) 评论(0) 推荐(0) 编辑

uni-app 标签的变化

摘要: 阅读全文

posted @ 2020-03-27 11:00 秃了头也不退休 阅读(3614) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 下一页

导航