To add class, use forEach() along with classList.add(). Example. Following is the code − <!DOCTYPE html> <html lang="en"> <head> <meta ...
確定! 回上一頁