从这个电话
@using (Ajax.BeginForm("Manage", "Account", new AjaxOptions { HttpMethod = "POST", Confirm = "Você tem certeza que deseja salvar a alteração?", OnSuccess = "close" }))
调用 OnSuccess 函数并执行以下操作:
function close(json) {
$('"#' + json.param1 + '"').dialog("close");
alert(json.Message);
}
我得到这个错误:
Error: Syntax error, unrecognized expression: "#UserSettings"
[打破这个错误]
throw new Error("语法错误,无法识别的表达式:" + msg);
$('#UserSettings').dialog("close");
工作正常,所以我不明白为什么会出错。