框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | createIntersectionObserver | 微信iOS客户端 | 7.0.13 | 2.11.2 |
this._observer = this.createIntersectionObserver();
this._observer.relativeToViewport({
bottom: 300
}).observe('.v-topic-widget-subpage', res => {
if (res.intersectionRatio > 0) {
let defer = this.getTopicInfo();
// do something
}
});
以上代码在体验版能监听到,正式版在微信提示“重启微信后使用新功能”后就监听不到了