本文实例讲述了js+html5通过canvas指定开始和结束点绘制线条的方法。分享给大家供大家参考。具体实现方法如下:
<!DOCTYPE html>
<html>
<body>
<canvas id=myCanvas width=200 height=100
style>
Your browser does not support the HTML5 canvas tag.
</canvas>
[removed]
var c=document.getElementById(my