如果脚本像往常一样位于
,我会遇到很大的问题<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
我无法通过js提交提交:
$('#table').get(0).setAttribute('action', '@Url.RouteUrl(new { controller = "Home", action = "Domain" })'); // it's work
$('#table').submit(); // this not work!!!