JavaScript运行时错误:InvalidStateError

时间:2016-05-31 20:11:56

标签: javascript c# web

我在代码的这个特定点遇到了“Unhandled Exception”错误:

{

function loadAccount(accountId) {
    // here->
    $("#accountDetails").load('/RxCard/GetAccount', { accountid: accountId }, function (response, status, xhr) {
        if (status == "error") {
            var msg = "Sorry but there was an error: ";
            alert(msg + xhr.status + " " + xhr.statusText);
        }

}

我不知道造成这种情况的原因。我正在尝试运行一个将保存用户提交的更改的应用程序。单击“保存”按钮后立即显示错误。任何帮助表示赞赏。感谢。

1 个答案:

答案 0 :(得分:0)

尝试关闭$(“#accountDetails”)。load with});

相关问题