如何在intellij中配置应用程序根路径以进行Web浏览器预览

时间:2016-03-03 00:27:20

标签: intellij-idea webstorm

我正在开发一个Angular应用程序,它是一个托管在.positionedAbsolute { position:absolute; top: 300px; width: 100%; left: 0px; text-align: center; } .justifiedBottom { padding: 15px; background-color: rgba(200,200,200,0.5); position: fixed; bottom: 0; left: 0; width: 100%; } 上的单页面应用程序

使用

等脚本引用
src/main/webapp/index.html

脚本

<script type="text/javascript" src="/vendors/jquery/1.12.0/jquery.min.js"></script>
<script type="text/javascript" src="/vendors/bootstrap/3.3.6/js/bootstrap.min.js"></script>

<script type="text/javascript" src="/vendors/angularjs/1.4.9/angular.js"></script>
<script type="text/javascript" src="/vendors/angularjs/1.4.9/angular-animate.js"></script>

实际位于<script type="text/javascript" src="/vendors/jquery/1.12.0/jquery.min.js"></script>

当我在Chrome浏览器预览中打开浏览器预览时,它会启动网址

src/main/webapp/vendors/jquery/1.12.0/jquery.min.js

然后浏览器尝试从

加载脚本
http://localhost:63342/myApp/main/webapp/play.html

基本上坐在

http://localhost:63342/vendors/jquery/1.12.0/jquery.min.js

我想知道是否有办法为intellij config设置应用程序根路径。

提前致谢。 :)

PS:js / html / css开发人员用于快速代码和测试周期的常用方法是什么?

0 个答案:

没有答案
相关问题