vue 使用 better-scroll 上拉反弹,

<div class="pull-info-info">

 <div v-html="detaisContent"></div>          

</div>
detaisContent =》里面包含图片

better() { //BScroll

this.$nextTick(() => {
    if(!this.scroll){
        this.scroll = new BScroll(this.$refs.questionsWrapper, {
            click:true
        })
    }else {
        this.scroll.refresh()
    }
})

},

mounted(){

this.better()  //BScroll

},

//我使用下面这种方法也是不行
watch:{

GoodsDetaiInfo(newValue){
    this.$nextTick(() => {
         this.scroll.refresh()
    })
}

}

clipboard.png

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