遇到一个小问题,输出换行符
然后无意加了引号之后成功
代码如下:
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/>");
效果如图所示:
原文地址:https://www.cnblogs.com/5Arno/p/12056347.html
时间: 2024-10-31 19:22:24