当前位置: 代码迷 >> 综合 >> 获取一个dom距离顶部的高度
  详细解决方案

获取一个dom距离顶部的高度

热度:66   发布时间:2023-09-18 23:32:01.0
selectorQuery.selectAll('.className').boundingClientRect(function(rects) {_this.right_height = rects.map((item) => item.top);console.log(_this.right_height)}).exec();

 

  相关解决方案