我也出现了这个问题,iphone14 版本16.0.3 代码直接用的uniapp的hello-uniapp的事例,非常简单 代码如下: export default { data() { return { title: '下拉刷新 + 加载更多', data: [], loadMoreText: "加载中...", showLoadMore: false, max: 0 } }, onLoad() { this.initData(); }, onUnload() { this.max = 0, this.data = [], this.loadMoreText = "加载更多", this.showLoadMore = false; }, onReachBottom() { console.log("onReachBottom"); if (this.max > 40) { this.loadMoreText = "没有更多数据了!" return; } this.showLoadMore = true; setTimeout(() => { this.setListData(); }, 300); }, onPullDownRefresh() { console.log('onPullDownRefresh'); this.initData(); }, methods: { initData(){ setTimeout(() => { this.max = 0; this.data = []; let data = []; this.max += 20; for (var i = this.max - 19; i < this.max + 1; i++) { data.push(i) } this.data = this.data.concat(data); uni.stopPullDownRefresh(); }, 300); }, setListData() { let data = []; this.max += 10; for (var i = this.max - 9; i < this.max + 1; i++) { data.push(i) } this.data = this.data.concat(data); } } } 界面如下: [图片] 调试基库 2.33.0 (换过其他基库一样没用) [图片] 真机调试时实际报错内容: [图片] 我看了下在远程代理也有onPullDownRefresh的代码的,不知道为什么说找不到? 我会持续跟进这个问题,希望能群策群力一起解决。🙏🙏🙏
onPullDownRefresh 触发不了?VM13:1 onPullDownRefresh WebviewId: 29 not found
2023-08-01