【发布时间】:2014-11-11 16:13:47
【问题描述】:
我正在尝试在 Spring MVC 服务器中的 html 页面中加载 js 脚本源。
Spring MVC 中的文件夹
html页面位于:src/main/webapp/WEB-INF/view/mapa.html
js 位于视图子文件夹中: src/main/webapp/WEB-INF/view/js/infobox.js
这是我的html页面mapa.html
<!DOCTYPE html> <html> <head> <style> #map_canvas { width: 500px; height: 400px; } </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script src="https://maps.googleapis.com/maps/api/js"></script> <!-- Caixa de informação --> <script src="js/infobox.js"></script> <!-- Agrupamento dos marcadores --> <script src="js/markerclusterer.js"></script> </head> <body> //code... </body> </html> `
我正在尝试使用 mapa.html 加载 infobox.js,但它没有加载。 这个源路由正确吗??
【问题讨论】:
标签: javascript spring