let query = uni.createSelectorQuery().select('#swiper-pic');
query.boundingClientRect(function(data) {
console.log("节点高为"+" : "+data.height);
_this.swiperHeight = data.height;
})
.exec();
求解 为什么uni.createSelectorQuery()获取高的值不是节点行内样式的414px,而是image组件的初始值240px