项目场景:
上拉加载更多功能的实现
问题描述
报错
原因分析:
1.pullingUpLoad 拼写错误
2.new better-scroll的时候设置属性 pullUpLoad=false 改为true就不报错了
props: {
probeType: {
type: Number,
default: 0
},
pullUpLoad: {
type: Boolean,
default: true
}
},
mounted(){
this.scroll = new BScroll(this.$refs.wrapper, {
observeDOM: true,
click: true,
probeType: this.probeType,
pullUpLoad: this.pullUpLoad
})
}