boundingClientRect 每次获取到的指定元素高度都不一样
- 当前 Bug 的表现(可附上截图)
query.select(‘#foot’).boundingClientRect(function (rect) {
foot = rect.height;
console.log(foot)
}).exec();
这里打印的foot 每次刷新之后值都不一样;
-
预期表现
-
复现路径
-
提供一个最简复现 Demo
query.select(‘#foot’).boundingClientRect(function (rect) {
foot = rect.height;
console.log(foot)
}).exec();
这里打印的foot 每次刷新之后值都不一样;
预期表现
复现路径
提供一个最简复现 Demo