<html> <head> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=8"> <script type="text/javascript" src="http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js"></script> <script type="text/javascript" charset="utf-8"> window.onload = function () { var paper = Raphael("canvas", 640, 480); paper.path({fill: "#000"},"M20,20L100,110z") }; </script> <title>直线</title> </head> <body> <div id="canvas"></div> </body> </html>
转载于:https://www.cnblogs.com/eversleeping/archive/2012/06/28/2567254.html