純粋なjavascriptのは、クラスの存在を確認し、クラスを追加し、クラスを削除するには

NoSuchKey

おすすめ

転載: blog.csdn.net/henryhu712/article/details/103787357