您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. 微信小程序获取自定义元素的宽高、使用”事件穿透”来达到状态同步的效果

  2. 微信小程序获取元素宽高的方式: // 自定义组件需要用:this.createSelectorQuery() const query = wx.createSelectorQuery() query.select('.my-class').boundingClientRect(res => { this.setData({ itemHeight: res.height, itemWidth: res.width }) }).exec() 这里需要注意一下: 如果是自定义组件或
  3. 所属分类:其它

    • 发布日期:2021-01-08
    • 文件大小:92160
    • 提供者:weixin_38659248