我在 VS2010 中运行它,提交表单时出现错误,显示“Microsoft JScript 运行时错误:对象不支持此属性或方法”。有什么建议么?
<script type="text/javascript">
function BlockUI() {
$.blockUI({ message: "<h1>Remote call in progress...</h1>" });
}
</script>
@using (Ajax.BeginForm("Switch", new AjaxOptions() {
UpdateTargetId = "Switch" + Model.Id,
InsertionMode = InsertionMode.Replace,
OnSuccess = "",
OnBegin = "BlockUI()",
OnComplete = "",
OnFailure = "alert('Failed to update switch')",
Confirm = "",
HttpMethod = "POST",
LoadingElementId = "",
Url = ""
}))