Using scripts in a master page with ASP.NET MVC

前端 未结 11 1332
难免孤独
难免孤独 2020-11-28 19:06

I\'m fairly new to ASP.NET MVC, and I\'m having a little trouble with scripts... in particular, I want to use jQuery in most pages, so it makes sense to put it in the master

11条回答
  •  时光说笑
    2020-11-28 19:30

    You should take a look at using a utility like squish it. It can aggregate and obfuscate all of your css and js files for you. Or you can use it to generate script tags if you just keep it in debug more by using ForceDebug()

    http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher

提交回复
热议问题