上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 198 下一页
摘要: wx.switchTab({ url: '/pages/cart/index', success:function () { var page = getCurrentPages().pop(); if (page == undefined || page == null) return; page.onLoad(); //重新刷新... 阅读全文
posted @ 2019-04-23 15:15 Shimily 阅读(2360) 评论(1) 推荐(0)
摘要: 事件类别: tap:点击事件; longtap:长按事件; touchstart:触摸开始; touchend:触摸结束; touchcansce:取消触摸; 事件绑定: bind绑定; catch绑定;(能阻止事件冒泡) 在冒泡的事件中: currentTarget 和 target是不一致的; 阅读全文
posted @ 2019-04-22 14:49 Shimily 阅读(309) 评论(0) 推荐(0)
摘要: ./apis/request.js文件:处理一些基本类 ./apis/api.js文件:进行接口处理 根目录下的api.js里面引入自己写的api.js文件 每个pages页面的使用方法 原文地址:https://www.jianshu.com/p/f9c1d2fde321 阅读全文
posted @ 2019-04-16 15:06 Shimily 阅读(8807) 评论(0) 推荐(1)
摘要: 微信小程序 【页面生命周期】: 【组件的生命周期】: created 组件实例化,但节点树还未导入,因此这时不能用setData attached 节点树完成,可以用setData渲染节点,但无法操作节点 ready 组件布局完成,这时可以获取节点信息,也可以操作节点 moved 组件实例被移动到树 阅读全文
posted @ 2019-04-15 15:55 Shimily 阅读(789) 评论(0) 推荐(1)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 198 下一页