為什么我的不能畫圖呢
var chess = document.getElementById('chess');
var context = chess.getContext('2d');
context.stroke();
context.moveTo(0,0);
context.lineTo(450,450);
var chess = document.getElementById('chess');
var context = chess.getContext('2d');
context.stroke();
context.moveTo(0,0);
context.lineTo(450,450);
2016-05-06
舉報
2016-05-06
stroke()放在后面,當你的路線設計好之后,在進行繪畫,而不是一出來就繪畫