var i;for(i=10; i>=0; i= i-1){ var s; for(s=0; s<i; s = s+1){ document.write("*"); } //i want this to print a new line /document.write(?);}我正在打印星空金字塔,無法打印新行。
如何在JavaScript中創建新行?
守著一只汪
2019-10-28 14:47:09