![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序
实战经验总结
维护世界和平的程序员
微博@维护世界和平的程序员
展开
-
微信小程序动画实现自定义底部弹出框
话不多说,先上效果图1 首先,在js里写一个函数来实现简单的上滑和下滑动画tapCoupon: function () { console.log(1); console.log(this.data.coupon_height) var ani = wx.createAnimation({ duration: 500,...原创 2020-02-11 23:32:19 · 788 阅读 · 2 评论 -
微信小程序通过js动态获取节点信息
获取某个元素的高度getRect(){ var that = this; wx.createSelectorQuery().select('#advert').boundingClientRect(function(rect){ that.setData({ ad_height:rect.height...原创 2020-02-11 22:52:24 · 1259 阅读 · 0 评论