ScriptBundle中的{version}是什么(“〜/scripts/jquery- {version} .js") [英] what is {version} in ScriptBundle("~/scripts/jquery-{version}.js")

查看:267
本文介绍了ScriptBundle中的{version}是什么(“〜/scripts/jquery- {version} .js")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试开始使用MVC SPA应用程序,并且在BundleConfig中注意到以下内容:

I try to get started with MVC SPA apps, and I noticed in BundleConfig the following:

 ScriptBundle("~/scripts/jquery-{version}.js")

这是如何工作的?什么是{version}?它来自何处?

How this works? What is {version} and where it it taken from?

在哪里可以找到更多信息,B​​undleConfig的工作方式以及如何对其进行自定义?

And where can find more information this, how BundleConfig works and how to customize it?

谢谢

推荐答案

请参见此答案问题.

还请查看

Also, check out this link. The Bundling and Optimization section discusses the use of the {version} tag.

这篇关于ScriptBundle中的{version}是什么(“〜/scripts/jquery- {version} .js")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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