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页面没动静,求解,,