Taro.nextTick(() => {// 使用 Taro.nextTick 模拟 setData 已结束,节点已完成渲染Taro.createSelectorQuery().in(isH5 ? this : this.$scope).select(".dynamic-detail-content-text").fields({ size: true }).exec(res => {if (!res[0]) return;console.log(res, "res");const lineHeight = 20;if (lineHeight * 5 < res[0].height) {this.setState({showAll: false,showFoldBtn: true});}});});