在HTML中使用Raphaeljs库(官网:http://Raphaeljs.com)的二个例子,一个是单独引用Raphael,另一个是与JQuery相接合.其实raphael-min.js同jquery-1.6.js是分别从官网下载到HTML同级目录下的JS文件. 在HTML文档中 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 又或者与Jquery相接合 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script src=" jquery-1.6.js" type="text/javascript"></script> <script src=" raphael-min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { //写入你的Raphael代码 </head> <body> </body> </html> |
[Raphael] 在HTML中如何使用Raphaeljs库.
最新推荐文章于 2019-03-15 17:17:36 发布