从ASP.net MVC 3 Project中删除默认JavaScript文件 [英] Removing default JavaScript files from ASP.net MVC 3 Project

查看:56
本文介绍了从ASP.net MVC 3 Project中删除默认JavaScript文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用ASP.net MVC 3并且我创建了一个空项目。我注意到脚本文件夹中填充了许多JavaScript文件,包括:

I'm just starting out with ASP.net MVC 3 and I've created an empty project. I noticed that the scripts folder is populated with a number of JavaScript files, including:


  • jQuery 1.5.1

  • jQuery UI 1.8.11

  • 一些jQuery插件

  • ASP.net MVC库

  • jQuery 1.5.1
  • jQuery UI 1.8.11
  • Some jQuery plugins
  • ASP.net MVC libraries

我想用Google AJAX CDN提供的最新版jQuery和jQuery UI开发我的应用程序。我的计划是开发一个单页面的AJAX应用程序,我不认为自己使用太多的内置功能进行模型验证,但是我想保留打开它的选项。

I want to develop my application with the latest versions of jQuery and jQuery UI served from the Google AJAX CDN. My plan is to develop a single page AJAX application, and I don't see myself using too many of the build in features for model validation, however I would like to keep the option of using it open.

如果我完全清除Scripts文件夹,我是否会遇到应用程序的任何问题?使用最新版本的jQuery和jQuery UI与ASP.net MVC库会遇到兼容性问题吗?

Will I run into any problems with my application if I clear out the Scripts folder completely? And will I run into compatibility problems using the latest versions of jQuery and jQuery UI with the ASP.net MVC libraries?

推荐答案


如果我完全清除Scripts文件夹,我是否会遇到应用程序的任何问题?

Will I run into any problems with my application if I clear out the Scripts folder completely?

不,如果你不使用它们。

No, if you don't use them.


我将使用最新版本的jQuery和jQuery UI与ASP.net遇到兼容性问题MVC库?

And will I run into compatibility problems using the latest versions of jQuery and jQuery UI with the ASP.net MVC libraries?

否。我能想到的唯一兼容性问题是使用jQuery UI和jQuery验证插件,但它们是非Microsoft的bot,因此如果您将它们更新到最新版本,您将不会遇到任何问题(这当然假设您使用的是客户端)验证,如果你不是它与你无关)。

No. The only compatibility problem I can think of was with jQuery UI and jQuery validate plugins but they are bot non-Microsoft so if you update them both to the latest version you won't have problems (this assumes of course that you are using client side validation, if you aren't its irrelevant to you).

所以我们可以完全免费删除脚本文件夹并从CDN引用外部脚本。

So feel perfectly free to remove the scripts folder and reference external scripts from CDNs.

这篇关于从ASP.net MVC 3 Project中删除默认JavaScript文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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