wx.pageScrollTo无效?页面无使用scroll-view ?

小程序 文章 2022-02-14 11:40 1296 0 全屏看文

AI助手支持GPT4.0

wx.pageScrollTo无效?页面无使用scroll-view ?wx.pageScrollTo invalid? Page not using scroll-view?

wx.pageScrollTo无效?页面无使用scroll-view ?
    setTimeout(() => {              wx.pageScrollTo({                scrollTop: 1500,                duration: 300,                success: function(res) {                   console.log('啊啊啊啊吧')                }              })            })            }, 14000)可以打印出来,但是页面没用效果

SetTimeout (() = > {Wx. Pagescrollto ({scrolltop: 1500, duration: 300, success: function (RES) {console. Log ('aha ')}})}), 14000) can be printed, but the page has no effect

回答:

😎😎:17399953322
微喵网络:

这点代码看不出问题,是不是用了scroll-view?

来个可复现的代码片段

brave:

scroll-view 直接设置 scroll-top 属性

王妙端:scroll-view 页面没用scroll-view标签

-EOF-

AI助手支持GPT4.0