thirdScriptError错误null is not an object
发布于 5 年前 作者 haolei 3061 次浏览 来自 问答
小程序Error: [u'thirdScriptError', u"null is not an object (evaluating 't[0].height');at pages/index/index showpubbox function;at SelectorQuery callback function"],

最近频繁报以上错误,我看了下相应函数里也没有用到“t[0].height”,看了一下函数,也没发现什么问题,求助,以下是相应函数代码:


showpubbox:function(e){

    var that=this;

    if(app.globalData.loginStatus == ‘noUser’){

        wx.navigateTo({ url: ‘/pages/followus/followus?refresh=false’ });

        return false;

    }

    let id=e.currentTarget.dataset.id;

    let pageindex=e.currentTarget.dataset.pageindex;

    let itemindex=e.currentTarget.dataset.itemindex;

    that.setData({

      showpublish:true,

      placeholder:‘对小伙伴说点什么吧…’,

      messageval:’’,

      group_dynamic_id:id,

      pageindex:pageindex,

      itemindex:itemindex,

      focus:true,

      describeMsg:’’

    });

    setTimeout(function(){

      that.setData({

        showtextarea:true

      });

    },300);

  }

3 回复

求问最后怎么解决的呀,我也报了一摸一样的错误,不知道是哪里的问题

线上同报错、但是本地未能复现

回到顶部