Titanium SDK 如何在其支持的各种平台上工作(2013 年)? [英] How does Titanium SDK work in the various platforms it supports (in 2013)?

查看:20
本文介绍了Titanium SDK 如何在其支持的各种平台上工作(2013 年)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有找到关于 Titanium SDK 如何工作的明确信息.

I haven't been able to find clear information about how Titanium SDK works.

  • 各种平台使用什么 javascript 引擎?维基百科说他们在 2011 年宣布了使用 v8 的计划,但没有提到他们实际使用它.他们使用v8吗?他们将其用于哪些平台?
  • 如何连接原生 UI 元素?UI 真的依赖于操作系统,还是它的 API 以某种方式构建到最低公分母?

推荐答案

这确实是一个太宽泛的话题,但我会给出一英里高的观点,并向您展示一些深入了解更多细节的视频.

This is really too broad a topic, but I'll give a mile high view and show you some videos that dive into more detail.

在当前迭代中,高级视图的工作方式与 " 中的完全相同Appcelerator Titanium Mobile 是如何工作的?",主要区别在于现在 Android 使用 V8,iOS 使用 JavaScriptCore,并且他们在 Titanium 之上添加了一个名为 合金,让您可以很好地拆分事物.

In the current iteration, the high level view works the exact same way as in "How Does Appcelerator Titanium Mobile Work?", the main difference is that now Android uses V8, iOS uses JavaScriptCore, and they have added an MVC layer on top of Titanium called Alloy that lets you split things up nicely.

两个主要平台在幕后做事完全不同,请在 iOS 内部上查看此视频,而这个关于 Android 内部结构.

The two main platforms do things fairly radically differently under the covers, check out this video on iOS internals, and this one on Android internals.

视图系统的工作原理是由 JavaScript 对象包装的原生对象,在它们之间建立一座桥梁,发送事件信息和更新.如果您真的想了解更多信息,只需查看源代码,但这对于开发来说根本不是必需的.

The view system works by native objects being wrapped by JavaScript objects, with a bridge between them that sends eventing information and updates. If you really want to know more, just look at the source, but that is not at all necessary for development.

但是,所有这一切都将随着 而改变Ti.Next,这将是从跨平台交叉编码 UI 组件的根本转变,核心引擎将跨平台相同,并用 ASM 生成的代码编写,也就是说,不要被挂起在细节上,只需编写代码.

But, all that is about to change with Ti.Next, which will be a fundamental shift from cross-coding UI components per platform, the core engine will be the same across platforms, and written in ASM generated code, all that to say, don't get hung up in the details, just code the thing.

这篇关于Titanium SDK 如何在其支持的各种平台上工作(2013 年)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆