mvc中的Bundle.config [英] Bundle.config in mvc

查看:64
本文介绍了mvc中的Bundle.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在mvc中添加Scripts.render有什么用?





what is the use of adding Scripts.render in mvc


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

推荐答案

Scripts.Render方法 [ ^ ]



为什么要使用@ Scripts.Render(〜/ bundles / jquery) [ ^ ]



文章解释了捆绑以及我们使用的原因@ Script.Render 和使用捆绑的网页优化。

ASP.net MVC中的捆绑和缩小 [ ^ ]
Scripts.Render Method [^]

Why use @Scripts.Render("~/bundles/jquery")[^]
and
the article explains about bundling and why we we use @Script.Render and web optimation of use bundling.
Bundling and Minification in ASP .NET MVC[^]


这篇关于mvc中的Bundle.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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