js样式添加

document.getElementsByName("spans")[index].style.color = "blue";

转载于:https://www.cnblogs.com/sx00/p/10914072.html

你可能感兴趣的:(js样式添加)