uniapp功能集合

实现滑动到指定位置

		handlego(){
				var me = this;
				   var query = wx.createSelectorQuery().in(me);
				   query.selectViewport().scrollOffset()
				   query.select("#comment").boundingClientRect();
				   query.exec(function (res) {
				    console.log(res);
				    var miss = res[0].scrollTop + res[1].top - 10;
				    uni.pageScrollTo({
				     scrollTop: miss,
				     duration: 300
				    });
				     
				   });
			},

你可能感兴趣的:(uniapp,uniapp功能)