Taro+react开发(73):Taro.createSelectorQuery
生活随笔
收集整理的這篇文章主要介紹了
Taro+react开发(73):Taro.createSelectorQuery
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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});}});});
?
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的Taro+react开发(73):Taro.createSelectorQuery的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [20141216]sqlplus的se
- 下一篇: GIT速查手册