Windows Phone 8 Javascript / HTML应用程序 [英] Windows Phone 8 Javascript/HTML app
问题描述
你好,
对于一门课程,我必须研究一下Windows Phone 8应用程序与HTML的开发。
For a course, I have to do a research about Windows Phone 8 applications devlopment with HTML.
For Windows 8应用程序,可以使用WinJS,但不能用于Windows Phone 8应用程序...
For Windows 8 apps, it's possible to use WinJS but not for Windows Phone 8 apps...
但我看到有"Windows Phone HTML 5 App"。使用"WebBrowser"控制。
But I saw that there was the "Windows Phone HTML 5 App" to work with a "WebBrowser" control.
所以我有几个问题:
1。这有什么可能性?
1. What really are the possibilities with that ?
2。 是否经常使用,与xaml / c#相比有哪些优势?
2. Is it often used and what are the advantages compared with xaml/c# ?
3。 是否可以使用CSS看起来像本机WP8应用程序的页面?也许使用Pivot / Panorama?
3. Is it possible to have pages looking like native WP8 application, with CSS ? And maybe to use Pivot/Panorama ?
4。在WP8应用程序中使用HTML的其他可能性有哪些? (PhoneGap,...)和什么是最佳选择?
4. What are the other possibilities to use HTML in WP8 apps ? (PhoneGap,...) and what is the best choice ?
谢谢
推荐答案
您已经放置了,首先必须将IsScriptEnabled属性添加到WebBrowser控件。
Hi placeed, first you must add IsScriptEnabled property to your WebBrowser control.
<phone:WebBrowser x:Name="Browser" IsScriptEnabled="True" />
这里有几个答案:
- Windows Phone HTML5 App:用于创建Windows 电话应用程序的项目,该应用程序主要使用HTML
内容。 - XAML / C#可以本机访问设备功能和.NET库的完全访问权限。 HTML无法做到这一点。
- 是的。但你必须使用css进行大量工作。
- 你可以用HTML编写一个简单的应用程序。我个人认为HTML是针对网页的。 PhoneGap是着名的:)
- Windows Phone HTML5 App: A project for creating a Windows Phone application that uses primarily HTML
content. - XAML/C# can natively Access to device capabilities and Full Access to .NET libraries. HTML cannot do that.
- Yes. But you must work a lot, spacially with css.
- You can write a simple App with HTML. Personally I think HTML is for web pages. PhoneGap is the famous one :)
希望你能发现它有用。
这篇关于Windows Phone 8 Javascript / HTML应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!