当我按Ctrl+A突出显示从中绘制的所有画布时,最后一行似乎是空白的或全部组合在一起。我正在尝试制作一个 4x4 的画布网格。我的逻辑错误是什么?
var count = 0;
while (count < 16) {
if (count % 4 == 0)
document.write("<br><canvas id = \"canvas_ \" + count + \" width = \"50\" height = \" 50\"></canvas>");
else
document.write("<canvas id = \"canvas_ \" + count + \" width = \"50\" height = \" 50\"></canvas>");
count++;
}