createIntersectionObserver:selectAll不起作用

发布于 7 年前作者 yuping17309 次浏览最后编辑 7 年前来自 ask

this.createIntersectionObserver({

thresholds: [0.1],

initialRatio: 0.2,

selectAll: true,

}).relativeToViewport()

.observe(‘.listprods’, res => {

util.showBusy(‘’ + res.id);

 this.setData({

total: ++this.data.total,

});

});

设置selectAll:true时,仍然只是第一个元素起作用,listprods样式类的其它节点不起作用

5 回复
min60
min601 楼6 年前

用 observeAll 试试

xieyang
xieyang2 楼6 年前

遇到了同样的问题

junchen
junchen3 楼6 年前

还没解决么?

tanqiang
tanqiang4 楼6 年前

同问 ,怎么 @ 官网  ,召唤一下。

xia61
xia615 楼5 年前

半个多月过去了,都没有回复。

官方要忽略这个bug么?