Windows phone 7 whindowphone IE-7 java脚本prb
我做了一个网页。Windows7的IE7不执行Javascript。如何在Windows Phone上启用Javascript?Windows Phone 7运行IE9的移动版本,因此执行Javascript应该没有问题。我能想到的只有一点信息,那就是您正试图从应用程序中使用webbrowsercontrol。在这种情况下,您应该将Windows phone 7 whindowphone IE-7 java脚本prb,windows-phone-7,Windows Phone 7,我做了一个网页。Windows7的IE7不执行Javascript。如何在Windows Phone上启用Javascript?Windows Phone 7运行IE9的移动版本,因此执行Javascript应该没有问题。我能想到的只有一点信息,那就是您正试图从应用程序中使用webbrowsercontrol。在这种情况下,您应该将IsScriptEnabled属性设置为true以启用控件中的脚本。chirag 在WindowsPhone7中,可以启用Javascript 在xaml中,可以将i
IsScriptEnabled
属性设置为true以启用控件中的脚本。chirag
在WindowsPhone7中,可以启用Javascript
在xaml中,可以将isScriptEnabled设置为true
例如:
<phone:WebBrowser HorizontalAlignment="Left" Width="480" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" ScrollViewer.VerticalScrollBarVisibility="Visible" Name="webBrowser" Height="80" VerticalAlignment="Bottom" IsScriptEnabled="True" ScriptNotify="webBrowser_ScriptNotify" Navigated="webBrowser_Navigated" Navigating="webBrowser_Navigating" />
您可以使用以下命令下载HTML内容:webClient或string htmlcontent=webBrowser.SaveToString
希望这有帮助!通加杜卡
private void webBrowser_ScriptNotify(object sender, Microsoft.Phone.Controls.NotifyEventArgs e)
{
//your code : e is returned from the javascript code if javaScript is active
}