javascriptmvc 根级 url ->问题
我是第一次探索 JMVC。我已经设置了我的食谱应用程序,如果我转到 http://localhost/jmvc/cookbook。 (我将 cookbook.html 重命名为 index.html。)但是,如果我创建一个域指针,以便我可以转到 http:// /dev.cookbook/ 我看到主页,但窃取脚本未加载。我想这是有道理的,因为他们正在寻找“../steal/{stuff}”,并且该路径对于该设置无效。那么解决方法是什么呢?当然,我不必为我的所有 JMVC 项目都有一个容器文件夹。
I'm exploring JMVC for the first time. I have my cookbook app set up and it seems to be working if I go to http://localhost/jmvc/cookbook. (I renamed cookbook.html to index.html.) However, if I make a domain pointer so that I can just go to http://dev.cookbook/ I see the main page, but the steal scripts don't load. I guess that makes sense, since they're looking for '../steal/{stuff}', and that path is invalid with that set-up. So what's the workaround? Surely I don't have to have a container folder for all of my JMVC projects.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 jmvc 论坛上得到了答案: http://forum.javascriptmvc.com /topic/root-level-url-problems#32525000000404011
基本上,您构建了一个如下结构:
在index.html中,您有一行类似:
got an answer on the jmvc forums: http://forum.javascriptmvc.com/topic/root-level-url-problems#32525000000404011
basically, you build a structure like:
in index.html, you have a line like: