遇到一个小问题,输出换行符
然后无意加了引号之后成功
代码如下:
var arr = ["HTML","CSS","JavaScript","HTML5","CSS3"];
document.write(arr[0]);
document.write("<br/>");
document.write(arr[1]);
document.write("<br/>");
document.write(arr[2]);
document.write("<br/>");
document.write(arr[3]);
document.write("<br/>");
document.write(arr[4]);
document.write("<br/>");