MVC - 添加对外部JavaScript文件的引用 [英] MVC - Adding A Reference To An External JavaScript File

查看:63
本文介绍了MVC - 添加对外部JavaScript文件的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MVC / Razor Web应用程序。  从这个应用程序中,我想引用一些存储在解决方案中的单独项目(Windows类库)中的JavaScript文件。  我有适当的参考设置,JavaScript文件
被标记为'Embedded Resource',并且相应的条目已添加到AssemblyInfo.cs中。  


我只是不确定如何将资源拉到MVC项目中的View上。  我确定我不是第一个尝试这样做的人,但我还没有找到一个如何实现这个目标的好例子。

解决方案

嗨  jmwheeler7,


你最好在下面更合适的论坛发布它以获得更好的回复。谢谢。


http://forums.asp.net/1146.aspx


I have an MVC/Razor Web Application.  From this application I would like to reference some JavaScript files that are stored in a separate project (Windows Class Library) in the solution.  I have the appropriate reference setup, the JavaScript files are marked as 'Embedded Resource', and the appropriate entries have been added to AssemblyInfo.cs.  

I'm just not sure how I can pull the resource onto my View in the MVC project.  I'm sure I'm not the first person trying to do this but I have yet to find a good example of how to accomplish this.

解决方案

Hi jmwheeler7,

You 'd better post it in below more appropriate forum for better responses. Thanks.

http://forums.asp.net/1146.aspx


这篇关于MVC - 添加对外部JavaScript文件的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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