Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
363 views
in Technique[技术] by (71.8m points)

WPF显示HTML会报js的错误,如何去掉这个呢?

clipboard.png
我只想让它显示一下HTML


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

webbrowser禁用JaveScript错误

试下下面的代码可以吗

 private void wbNav_Navigated(object sender, WebBrowserNavigatedEventArgs e)
    {
        wbNav.ScriptErrorsSuppressed = true;
    }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...