結果 : how to check class exists in javascript