wx.pageScrollTo
发布于 6 年前 作者 zhangfang 9906 次浏览 来自 问答

pageScrollToBottom: function() {

    wx.createSelectorQuery().select(’.chat_area’).boundingClientRect(function(rect){

        console.log(“start”)

        console.log(rect)

        // 使页面滚动到底部

        wx.pageScrollTo({

            scrollTop: rect.bottom,

            success: function(e){

                console.log(e)

            },

            fail:function(e){

                console.log(e)

            },

            complete:function(e){

                console.log(e)

            }

            })

            console.log(“over”)

    }).exec()

},

只打印出了 start rect 和over页面没动静,求解,,

回到顶部