uniapp获取元素的尺寸

使用 uni.createSelectorQuery() 来创建选择器查询对象。然后通过调用该对象的 .select(selector) 或者 .in(context) 等方法来指定要获取尺寸信息的元素。最后再调用 .boundingClientRect().exec((res) => {}) 方法来获取元素的位置、大小等信息。

------------------ - -
	------ -------- - -
	------ -------- - -
-------
只有蠢货才会犹豫不决。