单项选择题

下列classList对象的常用方法中,用于切换元素样式的方法是()

A.add()
B.contains()
C.toggle()
D.remove()