如果类属性未设置或为空,那么 elementClasses.length 返回 0 。虽然 element.classList 本身是只读的,但是你可以使用add() 和remove() 方法修改它。
確定! 回上一頁