2016年3月29日
摘要: 1.获取canvas画布 var canvas = document.getElementById('canvas'); var context = canvas.getContext('2d'); 2.绘制直线 context.moveTo(x0, y0); //起点 context.lineTo 阅读全文
posted @ 2016-03-29 20:39 pujianguo 阅读(342) 评论(0) 推荐(0) 编辑