简体   繁体   English

可以在iOS和Android的Appcelerator中创建Core

[英]Is possible create a Core in appcelerator for ios and android

I need to create a large enterprise application and I wonder if it is possible to create a common core with Appcelerator as a "framework" for iPhone and Android. 我需要创建一个大型企业应用程序,我想知道是否有可能使用Appcelerator创建通用核心作为iPhone和Android的“框架”。 The idea is to start the project in native to maximize the view of each platform but the common part of the application and make it strong with Appcelerator. 想法是以本机启动项目,以最大化每个平台(但是应用程序的公共部分)的视图,并通过Appcelerator增强其功能。

I don't think this strategy would work. 我认为这种策略行不通。 From what I know af Appcelerator it doesn't generate code that represents your javascript for each platform. 据我了解,Appcelerator不会为每个平台生成代表您的JavaScript的代码。 It generates a rending engine that then interprets your javascript on the fly. 它会生成一个转发引擎,然后即时解释您的JavaScript。

So I don't think you could write majority of your app is native and then just tie in some Appcelerator elements. 因此,我不认为您可以将大多数应用程序编写为本地应用程序,然后再绑定一些Appcelerator元素。 You can go the other way.. where you create the core project in Appcelerator than pull in some other libraries which could be your native views.. but Appcelerator would be your core and then pull in those other items specific to each platform. 您可以采用另一种方式。.在Appcelerator中创建核心项目,而不是引入其他一些库(可能是您的本机视图)。但是Appcelerator将成为您的核心,然后引入针对每个平台的其他项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM