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
            });
          }
        });
    });
 
                    
                     
                    
                 
                    
                 
 
         
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号