setInterval
at Proxy.setContent (uni_modules/mp-html/components/mp-html/mp-html.js:177:21)
at Proxy.content (uni_modules/mp-html/components/mp-html/mp-html.js:66:12)
at callWithErrorHandling (common/vendor.js:2758:20)
at callWithAsyncErrorHandling (common/vendor.js:2766:17)
at Array.job (common/vendor.js:3214:9)
at flushPreFlushCbs (common/vendor.js:2901:7)
at patch (common/vendor.js:4895:7)
定时器是为了确定富文本内容是否加载完毕,每 350ms 获取一次高度,和上一次无变化就会回收(参考 L341),等 ready 事件触发后再跳转页面应该就没有这个问题了 另外如果组件销毁了,定时器也会被回收(参考 L160)
350ms
ready
等 ready 事件触发后再跳转页面
谢谢回复