簡體   English   中英

MS JScript運行時錯誤,在2或3個警報后隨機獲取

[英]MS JScript runtime error, getting it randomly after 2 or 3 alerts

單擊警報窗口上的“確定”按鈕可獲得此異常。

(Some big uri)中的第1行第1列未處理的異常

0x800a138f-Microsoft JScript運行時錯誤:預期對象

這是一個Web應用程序。 我在asp.net網格上添加了幾個按鈕,單擊一個按鈕,使用以下命令從服務器端調用了一個彈出窗口

ScriptManager.RegisterStartupScript(this.Page, GetType(), "JavaScript", "alert('No notes have been saved against this customer')", true);

嘗試在生成的腳本的末尾添加分號:

ScriptManager.RegisterStartupScript(this.Page, GetType(), "JavaScript", "alert('No notes have been saved against this customer');", true);

多個腳本可能會串聯在一起。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM