0
我在Windows 7上使用html5,並試圖使用jQuery SVG描述here。drawIntro undefined
它在html文件中調用以下代碼行。
<script type="text/javascript">jQuery(function ($) {$('#svgintro').svg({onLoad: drawIntro});});</script>
然而,這會導致JavaScript控制檯返回錯誤信息
ReferenceError: drawIntro is not defined
我一直無法找到有關這個錯誤在網絡上或在那裏suppoed被定義的討論。
非常感謝。我現在可以看到與drawIntro有關的錯誤。我仍然有問題的地方是我現在得到錯誤消息TypeError:$(...)。svg不是函數。謝謝,彼得。 – OtagoHarbour
您是否在您的html中包含了'jquery.svg.js'。如果您已複製此帖子中的代碼,請確保它的路徑正確。 – Vinay
是的。它似乎正在看到該文件,因爲我得到了消息[11:19:55.546] GET http:// localhost:8080/indexDir/js/jquery.svg.js [HTTP/1.1 304 Not Modified 20ms]。謝謝,彼得。 – OtagoHarbour