如果脚本像往常一样定位,我有一个大问题
<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!!!