一、wx.pageScrollTo(https://mp.weixin.qq.com/debug/wxadoc/dev/api/scroll.html)
1. 小程序中雙擊頂部的textbar。會默認回到頂部
2. 能夠觸發page的上拉(ReachBottom)和(PullDownRefresh)事件
3. 當頁面中有使用position:fixed布局時,彈出鍵盤時,fixed布局部分和會閃屏
二、scroll-view(https://mp.weixin.qq.com/debug/wxadoc/dev/component/scroll-view.html)
1. 縱向滾動(scroll-y)時,必須設置height值,並且不能使用css忠的calc來計算,scroll-top才能生效
2. 小程序中雙擊頂部的textbar,無法回到頂部
3. 無法觸發page的上拉(ReachBottom)和下拉(PullDownRefresh)事件
4. 當頁面中position:fixed布局不受影響