为什么没有为ASP.NET MVC项目的内容文件夹内的Scripts文件夹? [英] Why not have the Scripts folder inside of the Content folder for ASP.NET MVC project?

查看:127
本文介绍了为什么没有为ASP.NET MVC项目的内容文件夹内的Scripts文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于好奇,我想知道是否有一个合乎逻辑的理由有脚本文件夹没有内容的子文件夹中的ASP.NET MVC项目文件夹。文件夹的内容通常包含您的样式表和图片,并由于某种原因,它似乎自然地我还包括在脚本文件夹存在,以及

Out curiosity I was wondering if there was a logical reason to have the Scripts folder not a sub folder of the Contents folder in an ASP.NET MVC project. The Contents folder typically contains your style sheets and images and for some reason it would seem natural to me to also include the Scripts folder in there as well.

推荐答案

可能是因为脚本可以被表示为提供比风格和设计的项目更多的功能,因此可以认为它是你的业务逻辑的一部分。

Possibly because scripts could be denoted as providing more functionality than style and design items, so it could be considered a portion of your business logic.

这篇关于为什么没有为ASP.NET MVC项目的内容文件夹内的Scripts文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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