<html>
<head>
<script>
function draw() {
var canvas = document.getElementById('draw');
if (canvas.getContext) {
var ctx = canvas.getContext('2d');
for (i=0,i<=700,i+=10){
ctx.beginPath();
ctx.moveTo(i,700-i);
ctx.lineTo(700-i,i);
ctx.stroke();
}
} else {
document.write("Hey idiot, whhich idiot browser you are using? No IE clan here!");
}
}
</script>
</head>
<body onload="draw();">
<canvas id="draw" width="700" height="700"></canvas>
</body></html>
誰能告訴我什麼問題是這個簡單的代碼不工作? .............................一個簡單的帆布超出了我的想象
作爲l user的用戶,我感到侮辱。 –