我正在从windows移动应用程序背后的代码中调用javascript。我正在使用Windows 8.0和Visual 2012进行开发。
在调用时,我将遵循isuue
wbInnerContent.InvokeScript('scriptName', new String[] { jsonval });{System.SystemException:发生了一个未知错误。错误: 80020101。在Microsoft.Phone.Controls.NativeMethods.ValidateHResult(Int32 hr)在Microsoft.Phone.Controls.WebBrowserInterop.InvokeScript(String scriptName,String[] args)在Microsoft.Phone.Controls.WebBrowser.InvokeScript(String scriptName,String[] args(String[] args)在OneVoiceAfrica.Header.d__16.MoveNext()}
我是移动应用程序开发的新手。请帮我解决这个问题。
提前谢谢。
发布于 2015-02-05 15:44:08
确保IsScriptingEnabled是正确的,也许问题可能是由于Loaded event调用太早。
webBrowser.IsScriptEnabled = true;https://stackoverflow.com/questions/28345678
复制相似问题