在mvc-bootstrap中使用時@Scripts.Render("~/bundles/jqueryval")加上驗證的js ...
@using (Ajax.BeginForm("CreateReviewInfo", "Review", new AjaxOptions { HttpMethod = "post", OnSuccess = "BackResultReview", OnBegin = "ShowLoading", OnComplete = "HideLoading" }, new { @id = "ReviewInfoForm", @role = "form", @class = "form-horizontal" })) {
@Html.AntiForgeryToken()
<button type="submit" class="btn btn-default">添 加</button> }
在mvc-bootstrap中使用時@Scripts.Render("~/bundles/jqueryval")加上驗證的js