以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 SVG/GML/VRML/X3D/XAML 』 (http://bbs.xml.org.cn/list.asp?boardid=21) ---- 为什么我引用JS文件出错? (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=35623) |
-- 作者:upc2neiep -- 发布时间:7/14/2006 2:15:00 PM -- 为什么我引用JS文件出错? 引用部分: <svg width="800" height="600" zoomAndPan="disable" enableZoomAndPanControls="false" onload="init(evt)"> <script type="text/ecmascript" xlink:href="js/action.js"/> <script type="text/ecmascript" xlink:href="js/draw.js"/> <script type="text/ecmascript" xlink:href="js/file.js"/> <script type="text/ecmascript" xlink:href="js/menu.js"/> <script type="text/ecmascript"> <![CDATA[ function init(evt) { //引用draw.js的函数draw() } ]]></script> 为什么报错:draw未定义 但是把所有的js文件内容放在svg文件中,就能够顺利工作? 目录结构 |
-- 作者:upc2neiep -- 发布时间:7/17/2006 10:12:00 AM -- 光看不说,花架子~~~~~~~~~ 哼 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
31.250ms |