gpt4 book ai didi

javascript - 将自定义 Cordova 插件转换为 Windows 8/RT

转载 作者:行者123 更新时间:2023-11-30 18:12:24 26 4
gpt4 key购买 nike

我正在将在 iOS/Android 上运行的 html/javascript 应用程序转换为在 Windows 8/RT 上运行。我有大部分 HTML/Javascript/jQuery 在 Windows 8/RT 上工作,但需要弄清楚如何让插件在 Windows 8 上工作。

也就是说我有几个问题。

1) Windows 8/RT 的母语是什么?

  • 在 Android 中,我的 Javascript 插件与 JAVA 文件对话并返回一个插件结果。 Windows 8 上的等效项是什么?

2) 是否有关于如何设置 Windows 8 插件的文档?

  • Phonegap 页面目前仅列出 Windows Phone 8/7文档。

3) Cordova 插件支持 iOS 和 Android 的 window.openDatabase 函数,在 Windows 8 上是否有等效函数?

4) Windows 8 是否支持蓝牙通信?

最佳答案

  1. 核心 WinRT 组件是用 C++ 编写的。您可以使用 C++、C# 或 VB.NET 编写自己的组件。无论 WinRT 组件是用什么语言编写的,您都可以从 JavaScript、C#、VB.NET 或 C++ 访问它。 Windows 应用商店应用程序可以用这些语言中的任何一种编写。它们都得到 Microsoft 的全力支持。
  2. > Creating Windows Runtime Components in C# and Visual Basic . Creating Windows Runtime Components in C++ .
  3. window.openDatabase 创建一个 SQLite 数据库。 You can use your own SQLite database for a Windows Store app . There's also a way to use SQLite from JavaScript .或者,由于您使用的是 JavaScript,您可以使用 the IndexedDB capability in HTML5 .
  4. 是的,Windows 8 支持蓝牙。 Look at Windows.Networking.Proximity .

关于javascript - 将自定义 Cordova 插件转换为 Windows 8/RT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14281527/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com