C#WebBrowser - 如何摆脱JavaScript错误提示?

Ser*_*dov 9 html javascript c# browser

我正在使用C#WebBrowser,有时当页面加载(并非总是)时,我得到以下提示:

An error has occured in the script on this page.
Line 1
Char 45774
Error Object required
Code 0
URL http://xxx.i_replaced_the_link_here.com/blah_BLAH_blah123

Do you want to continue running scripts on this page?
Yes / No
Run Code Online (Sandbox Code Playgroud)

我想继续,但我不能经常单击是按钮.

你怎么认为我可以解决它?

Ioa*_*mas 15

您可以将WebBrowser.ScriptErrorsSuppressedcontrol属性设置为true.你不会那样得到任何错误.