var c = document.getElementById("myCanvas");//注意有双引号
var context = c.getContext("2d");
context.moveTo(0,0);
context.lineTo(200,100);
context.stroke();
var c = document.getElementById("myCanvas");//注意有双引号
var context = c.getContext("2d");
context.moveTo(0,0);
context.lineTo(200,100);
context.stroke();
本文标题:canvas 画线
本文链接:https://www.haomeiwen.com/subject/mwdpcttx.html
网友评论