为什么有这么多jquery ajax文件? [关闭]

                <div class="grid--cell fl1 lh-lg">
                    <div class="grid--cell fl1 lh-lg">
                        It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and   cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened,   <a href="/help/reopen-questions">visit the help center</a>.

                    </div>
                </div>
            </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2013-06-19 09:35:26Z" class="relativetime">6 years ago</span>.</div>
        </div>
    </aside>
            "~/Scripts/jquery-ui-{version}.js",
            "~/Scripts/jquery-ui.unobtrusive-{version}.js",
            "~/Scripts/jquery.validate-vsdoc.js",
            "~/Scripts/jquery.validate.js",
            "~/Scripts/jquery.validate.unobtrusive.js"
            "~/Scripts/jquery.unobtrusive-ajax.js"

I am very confused about these files. I think not all of them are required when i want to turn a normal form into an ajax form. But am not sure which files to include.

Can someone explain what is the role and use of each of these files ? and how are they related to Html.BeginForm or Ajax.BeginForm ?

</div>

I think not all of them are required when i want to turn a normal form into an ajax form. But am not sure which files to include.

You only need jquery and jquery.unobtrusive-ajax. And the second is only needed if you are using the Ajax.* helpers. If you are manually AJAXifying your forms you don't need at all.

  • "~/Scripts/jquery-ui-{version}.js" - The jQuery UI plugin
  • "~/Scripts/jquery-ui.unobtrusive-{version}.js" - I have strictly no idea, never used it
  • "~/Scripts/jquery.validate-vsdoc.js" - documentation of the jQuery.validate plugin
  • "~/Scripts/jquery.validate.js" - the jQuery.validate plugin itself
  • "~/Scripts/jquery.validate.unobtrusive.js" - Microsoft's unobtrusive client side validation based on the jQuery.validate plugin. It allows you to have client side validation on top of the server side data annotations
  • "~/Scripts/jquery.unobtrusive-ajax.js" - makes the Ajax.* helpers actually work