锚点跳转 使用uni.createSelectorQuery()返回一个 SelectorQuery 对象实例。 然后就可以在这个实例上使用 select 等方法选择节点,并使用 boundingClientRect 等方法选择需要查询的信息。 // 锚点跳转 jump(id){ uni.createSelectorQuery().select('.'+id).boundingClientRect