将文件添加到现有项目 [英] Adding file to existing project

查看:138
本文介绍了将文件添加到现有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建空白应用程序后,我想在项目中添加另一个文件/模板。我这样做是通过右键单击项目 - > gt; add item-> detailPage。然后IDE在我的.js,css和html文件中生成所有必要的锅炉代码。但是,当我尝试从default.html链接到detailPage.html时,
detailPage.js脚本似乎无法工作/加载。我在这里遗漏了什么,因为detailPage.html页面工作正常吗?我检查了javascript路径,它没有任何问题。

After created a blank application, I want to add another file/template into my project. I did so by right click the project->add item->detailPage. The IDE then generated all the necessary boiler codes inside my .js, css and html files. However, the detailPage.js script doesn't seem to work/load when I try to link to the detailPage.html from my default.html. Am I missing something here because the detailPage.html page works just fine? I checked the javascript path, and there is nothing wrong with it.

 

谢谢

推荐答案

确保根据文件所在的目录结构以及您尝试包含的文件所在位置正确引用完整路径。
Make sure you're properly referencing the full path based on the directory structure of where your files are and where the files you're trying to include are.


这篇关于将文件添加到现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆