网页版五子棋

网页版五子棋最新的HTML5 function drawLine(x1,y1,x2,y2){ tcanvas=document.getElementById("mycanvas"); tcontext= canvas.getContext("2d"); tcontext.beginPath(); tcontext.moveTo(x1+20,y1+20); tcontext.lineTo(x2+20,y2+20); tcontext.closePath(); tcontext.stroke(); }
html 文件大小:3.91KB