windows phone html5,“Windows Phone HTML5 App”和“Javascript Windows Store Project”之间的区别(Difference bet...

“Windows Phone HTML5 App”和“Javascript Windows Store Project”之间的区别(Difference between “Windows Phone HTML5 App” and “Javascript Windows Store Project”)

大家可以告诉我“Windows Phone HTML5 App”(在新项目 - > Windows Phone下)和“Javascript Windows Store Project”(新项目 - >其他语言 - > JavaScript - > Windows Store)之间的区别是什么?

在HTML5项目中,有可能在设备上进行调试,但在“Javascript Windows商店项目”项目中,您不能。 是否有可能在Javascript项目上调试设备?

谢谢

Could everyone tell me what is the difference between "Windows Phone HTML5 App" (under new project -> Windows Phone) and "Javascript Windows Store Project" (under new project -> Other Languages -> JavaScript -> Windows Store)?

In a HTML5 project there is a possibility to debug on device but in a "Javascript Windows Store Project" project you cannot. Is there also a possibility to debug on device on a Javascript project?

Thanks

原文:https://stackoverflow.com/questions/15964394

更新时间:2019-07-05 05:56

最满意答案

Windows Phone HTML5应用程序项目仅在Windows Phone上运行,是使用托管HTML的WebBrowser控件的应用程序。 没有来自底层操作系统的本机支持,只有浏览器显示HTML页面。 您可以将JavaScript方法绑定到C#,可以对其进行调试。

Windows应用商店项目仅在Windows 8上作为“Metro”或“Modern UI”应用运行。 JavaScript托管在WinRT运行时中,并与操作系统的许多部分集成。

这两个模板不可互换。

The Windows Phone HTML5 app project only runs on Windows Phone and is an app using a WebBrowser control hosting the HTML. No native support from the underlying OS, just the browser displaying HTML pages. You can tie JavaScript methods to C#, it's possible to debug this.

The Windows Store project only runs on Windows 8 as a "Metro" or "Modern UI" app. The JavaScript is hosted in the WinRT runtime and has integration with many parts of the OS.

These two templates are not interchangeable.

相关问答

Windows Phone HTML5应用程序项目仅在Windows Phone上运行,是使用托管HTML的WebBrowser控件的应用程序。 没有来自底层操作系统的本机支持,只有浏览器显示HTML页面。 您可以将JavaScript方法绑定到C#,可以对其进行调试。 Windows应用商店项目仅在Windows 8上作为“Metro”或“Modern UI”应用运行。 JavaScript托管在WinRT运行时中,并与操作系统的许多部分集成。 这两个模板不可互换。 The Windows Ph

...

创建新的WP8 HTML5项目后,打开MainPage.xaml并将IsScriptEnabled="True"设置为控件。

IsScriptEnabled="True"

HorizontalAlignment="Stretch"

VerticalAlignment="Stretch"

...

Windows Phone 8 Silverlight是Windows Phone 8上的旧版UI。WinRT XAML用于Windows应用商店应用(这些是通用应用)。 Windows Phone 8.1 Silverlight与此处解释的有点不同。 Windows Phone尽管年龄较大,但Silverlight在某些方面更好。 如果您的目标是开发一款仅针对手机的应用程序,并且没有任何用于Win8 / RT的用途,请使用Silverlight。 背景音频在WinRT中是一团糟。 语音识别与Co

...

MainPage.xaml.cs中 private void Browser_Loaded(object sender, RoutedEventArgs e)

{

Browser.IsScriptEnabled = true;

// Add your URL here

Browser.Navigate(new Uri(MainUri, UriKind.Relative));

Browser.Navigated += (o, s) => {

s

...

根据2012年6月Windows Phone峰会发布的信息,Windows Phone 8的开发选择似乎是: XAML与C#/ VB代码 原生C ++ / C代码 HTML 5浏览器控件 根据他们选择的措辞,我推断C ++ / XAML和WinRT / HTML5开发模型都不可用。 一旦“今年夏天晚些时候”发布WP8 SDK的预览,我们就会知道更多。 Based on the information released at the June 2012 Windows Phone Summit, i

...

我终于知道区别了。 一个链接帮了我很多: MediaCapture.StartPreviewAsync在javascript中不可用? 提到的链接指向示例源代码: 使用捕获设备示例的媒体捕获 。 最重要的部分: mediaCapture = new Windows.Media.Capture.MediaCapture();

mediaCapture.initializeAsync().done(function(result){

var video = this.document.getE

...

您已从Windows应用商店应用(W8.1,由IE支持)更改为UWP应用(由Edge支持的W10)。 VS2013无法创建UWP应用程序,而VS2017无法创建Windows应用商店应用程序,因此您必须已移植。 特别是,指针事件现在是一个w3c标准,并且从EdgeHtml中删除MS前缀的版本,以支持标准化的指针事件。 请参阅指针事件更新 execUnsafeLocalFunction已被删除,以支持新的安全模型。 请参阅确保应用安全 - 设置应用内容URI规则(ACUR) You've chang

...

似乎解决方案是将(现在统一的)Windows Store开发人员帐户中的两个应用程序合并。 那,或者将其中一个应用程序重命名为其他内容。 无论哪种方式,我认为你需要得到支持。 如果您打开具有Microsoft Windows开发人员中心支持的故障单,他们应该能够帮助您完成整个过程。 It seems like the solution would be to merge the two apps in your (now unified) Windows Store developer accou

...

我不确定这是否是预期的行为。 要获得独立存储,您需要使用JS / .NET互操作。 如果你想从JS触发持久存储: 在JS中使用window.external.notify ,生成一个JSON字符串(例如)以传递给.NET端。 这可以写入IsolatedStorage,而.NET不必解析数据。 您可以使用IsolatedStorage.AppSettings或完整文件,具体取决于数据的大小。 或者,您可以从.NET触发进程: 调用WebBrowser.InvokeScript来调用JS函数,该函数返

...

将公共代码设置为“可移植类库”项目,针对您需要的平台(在本例中为Silverlight和Windows Store)。 这使您可以访问这些框架的交集。 然后,可以由特定于框架的shell项目引用和使用它。 Set the common code up as a "portable class library" project, targeting the platforms you want (Silverlight and Windows Store in this case). This gi

...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值