We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
小程序对wx:if 和 hidden使用的理解?
千锋教育
wx:if有更高的切换消耗。
hidden 有更高的初始渲染消耗。
因此,如果需要频繁切换的情景下,用 hidden 更好,如果在运行时条件不大可能改变则wx:if 较好。