weex getComponentRect在IOS9.3下调用两次时闪退

新手上路,请多包涵

1、dom.getComponentRect 使用两次时会引起IOS9.3闪退或者报
2、相关代码
//设置scroller高度

    var appHeight=0;
    var tabbarHeight=0;
    
    dom.getComponentRect(this.$root.$refs.app,option => {
        appHeight =option.size.height;
        dom.getComponentRect(this.$root.$refs.tabbar1,aa => {
            tabbarHeight =aa.size.height;
            this.scrollHeight=appHeight-tabbarHeight;
        });
    });
    

3、报错截图

clipboard.png

阅读 3.2k
1 个回答

我也遇到了这个问题,请问解决了吗

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题