Assuming you have an element in the DOM: Get a reference to that DOM element: const el ... classList.add(...classes); // Remove a class el.
確定! 回上一頁