我需要在整个网页中搜索class="error",如果不存在,请更改error = true为error = false.
我怎么能用 jQuery 做到这一点?我有一种模糊的感觉,我可以以.each();某种方式做到这一点,但我不知道该怎么做。
我需要在整个网页中搜索class="error",如果不存在,请更改error = true为error = false.
我怎么能用 jQuery 做到这一点?我有一种模糊的感觉,我可以以.each();某种方式做到这一点,但我不知道该怎么做。