-2
我收到「處理異常」錯誤的代碼的這一具體問題:的JavaScript運行時錯誤:InvalidStateError
{
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);
}
}
我不知道是什麼原因造成這一點。我試圖運行一個應用程序來保存用戶提交的更改。一旦我點擊「保存」按鈕,就會出現錯誤。任何幫助表示讚賞。謝謝。
您是否在Javacript控制檯或警報消息中看到錯誤? – Barmar
Visual Studio正在生成此消息。 – julianc