JS的循环赋class值js:window.onload = function(){ var lis = document.getElementsByTagName("li") for (var i = 0 i < li2023-04-08JavaScript260