摘要: 乐玩联盟小程序开发者:本文阅读时长约 10 分钟,都是干货~ 小程序背景 乐玩联盟小程序自去年上线之后,本人就定下一个目标‘有App样的精致体验’,这对于一个人开发乐玩小程序来说,无疑是个挑战。 为了达成目标,“页面性能”、“友好的产品体验” 和 “稳定的系统服务” 成为了本人最基本执行原则。 首页 阅读全文
posted @ 2020-04-13 22:45 周十发 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 1.Radio标签不支持嵌套写法 和微信小程序不一样,支付宝小程序的表单元件都不支持嵌套标签写法,比如: 这样的写法是无法显示出选择描述的(栗子中的{items.name}被忽略) 写法如下: 2.my.openLocation的参数有四项为必填,必填,必填 3.my.getStorageSync( 阅读全文
posted @ 2019-02-27 15:19 周十发 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: wx.getMenuButtonBoundingClientRect() ios手机偶尔复现是0 这个问题很早就有但是微信官方也一直没有解决,下面给大家介绍一个兼容做法(wx.getMenuButtonBoundingClientRect()["top"]举个例子) 1,步骤一 在app.js on 阅读全文
posted @ 2021-07-17 17:04 周十发 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: 覆盖Ant Design Vue Drawer组件的默认样式 1,在组件的html中设置wrapClassName="drawer-style" <a-drawer :mask-style="{'background':'rgba(51, 51, 51, 0)'}" width="512px" pl 阅读全文
posted @ 2021-07-06 20:11 周十发 阅读(1659) 评论(0) 推荐(0) 编辑
摘要: 1,引入vuex import { createStore } from "vuex"; 2,创建store const store = createStore({ state(){ return { count: 1, } } mutations: { add(state){ state.coun 阅读全文
posted @ 2021-07-04 23:09 周十发 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 组件watch选项和实例方法$watch不再支持点分隔符字符串路径 以,分隔的表达式不再被watch和$watch支持,可以使用计算函数作为$watch参数实现。 1,vue3同时监听多个参数执行相同的方法 watch([() => book.name, count], ([name, count] 阅读全文
posted @ 2021-07-04 22:09 周十发 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1,v-enter -> v-enter-from 2,v-leave -> v-leave-from 相对应的就是 v-enter-from + v-enter-to -> v-enter-active v-leave-from + v-leave-to -> v-leave-active <te 阅读全文
posted @ 2021-07-04 21:51 周十发 阅读(472) 评论(0) 推荐(0) 编辑
摘要: bind -> beforeMount 组件挂载之前 inserted -> mounted beforeUpdate 元素自身更新前调用,和组件生命周期钩子很像(更新前用) componentUpdate -> updated(更新后用) beforeUnmount 和生命周期相似,元素将要被调用 阅读全文
posted @ 2021-07-04 21:27 周十发 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 一,vue3路由跳转 1,引入vue-router import { useRouter } from 'vue-router'; 2,steup中定义方法push,replace等等 const { push, replace} = useRouter(); 二,vue3路由url传参 1,用pu 阅读全文
posted @ 2021-07-04 12:36 周十发 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: <view class="container"> <view class="page-body"> <view class="page-section message"> <text wx:if="{{appear}}"> 小球出现 </text> <text wx:else> 小球消失 </tex 阅读全文
posted @ 2020-04-21 18:04 周十发 阅读(3732) 评论(0) 推荐(0) 编辑
摘要: 分享一个为小程序定制的手势监听事件库-YrobotTouch 原文连接:https://developers.weixin.qq.com/community/develop/article/doc/000006d3814318eff728a86b65b413 YrobotTouch-WXLP Yro 阅读全文
posted @ 2019-03-01 18:47 周十发 阅读(1375) 评论(0) 推荐(0) 编辑