怎么使用js遍历修改每个元素的classvar list = document.getElementById("list1").getElementsByTagName("a")for (var i=0i<list.length2023-03-01JavaScript260