本文介绍了在intel xdk建立应用程序:你需要建立cordova使用cordova apis的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我刚刚学会了intel xdk,我将了解它是如何工作的,以及什么是生产应用程序的步骤。但是,我被困在一些地方理解它。你能为我澄清一些东西。

I have just learned of intel xdk and i am going over how it works and what are steps to produce apps.. However, i am stuck at some place in understanding it. Can you clarify some stuff for me.

根据我的理解:

Intel XDK默认提供apis扩展cordova apis。因此cordova apis包含在intel xdk中,如果有人想要使用它们,它们只包括一个src设置为cordova.js的脚本标签。所以我的问题如果我使用cordova api而不是intel xdk apis ..(我不知道为什么会有人这样做。当两者都是一样的事情,所以为什么要额外的麻烦添加cordova脚本标记,然后参考等。 )然后我可以建立它作为android应用程序和cordova apis将工作?或者我必须选择cordova Android应用程序才能使用cordova apis?

Intel XDK by default provides apis that extend cordova apis. And therefore cordova apis are included in the intel xdk and if someone wants to use them they just include a script tag with src set as 'cordova.js'. So my question if i am using cordova api instead of intel xdk apis..( i don't know why would someone do this..when both are the same thing so why go an extra trouble of adding cordova script tag then reference etc.) then can i build it as android app and cordova apis will work? or i have to choose cordova android app to make use of cordova apis?

我的猜测就是选择搭建android将允许我使用cordova api因为这是一个大

My guess is just choosing to build for android will allow me to use cordova api because this is a big step and it'd have been in docs..maybe it's!?!?!

推荐答案

是的,你可以建立为 Android应用和cordova API将工作,只要cordova.js脚本标记包括。它主要用于使用intel.xdk API构建应用程序,后来添加了Cordova 2.9支持,此版本中不支持Cordova插件。

Yes, you can build as "Android" app and cordova APIs will work as long as "cordova.js" script tag is included. It was mainly meant for building apps with intel.xdk APIs, Cordova 2.9 support was later added, Cordova plugins are not supported in this build.

Cordova for Android在测试版中,这更像是使用构建的实际Cordova应用,Cordova插件很快就会受支持,不支持intel.xdk API。您必须包括cordova.js脚本标记,Cordova API才能正常工作。这将成为Android未来的默认版本。

"Cordova for Android" is in beta release, this is more like an actual Cordova app built using Cordova CLI, Cordova plugins will soon be supported, intel.xdk APIs are not supported. You have to include "cordova.js" script tag for Cordova APIs to work. This will become the default build for Android in future.

这篇关于在intel xdk建立应用程序:你需要建立cordova使用cordova apis的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 23:34