Is there a correct way to add custom Javascript to an ASP.NET MVC 5 page?
问题 At the moment, I have added the jQuery source file to my ASP.NET project's Scripts folder. In the _Layout.cshtml page, I have included ~/Scripts/jquery-2.1.1.min.js. Right now, I can include jQuery code on every page I make this way: If this page shows a popup I was succesfull. <script> $(document).ready(function(){ alert("works!"); }); </script> However, I don't want to include a full script in every view. I would prefer to create a seperate JS file, put it in my Scripts folder, and then