下面有什么脚本错误?
var color = ["black","gray","silver","white","yellow","orange","red","brown","pink","purple","blue","aqua","green","lime","olive","navy","teal"];
for(a=0; a<color.length; a++){
document.write("<li><a href='#' class='color' id='"+color[a]+"'></a></li>");
问题,在一个框中没有出现颜色。
如何在包装盒中显示颜色?