When calling Ajax.ActionLink开发者_StackOverflow中文版 and passing a new instance of AjaxOptions, HttpMethod is by default GET, not POST as stated by the documentation. Is the documentation wrong or does ActionLink modify the AjaxOptions structure somehow by checking whether the property had been set by the user? I don't see why it would.
http://msdn.microsoft.com/en-us/library/system.web.mvc.ajax.ajaxoptions.httpmethod.aspx
Apparently the default is actually empty string (according to Reflector) and the classes that use it treat "" as GET. So the default is GET, the docs are wrong.
加载中,请稍侯......
精彩评论