jsconfcn / hangjs

JS Conf China 2014: A two-day conference for Chinese Javascript & Node.js developer community, to be held in Hangzhou
http://2014.jsconf.cn
98 stars 26 forks source link

@鬼道: Ali Hybrid Api #31

Closed fengmk2 closed 4 months ago

fengmk2 commented 10 years ago

Ali Hybrid Api

分享着: 徐凯 (阿里花名: 鬼道), github: @luics

目标

  1. 提供一套能够运行在独立浏览器和客户端的 API。
  2. 对用户而言写一份代码可运行在:Android设备、iPhone、iPad 的客户端和独立浏览器。

    架构

  3. 用户环境:独立浏览器、Webview。
  4. Ali Hybrid API(AHA):按照 W3C 规范封装 Native 提供的接口。
  5. Bridge:Native 与 Web 双向通信机制。
    • motion(加速度)等连续性事件需要考虑回调性能问题,避免频繁触发 Bridge。
  6. 客户端:AHA 的数据提供方。
    • Native 最大程度兼容 W3C 相关规范,允许合理的扩展。

1

参考

pg-api: http://docs.phonegap.com/en/3.3.0/#API%20Reference ti-api: http://docs.appcelerator.com/titanium/3.0/#!/api w3c: http://mobilehtml5.org/ dap: http://www.w3.org/2009/dap/ geo: http://www.w3.org/2008/geolocation/ motion: http://dev.w3.org/geo/api/spec-source-orientation.html h5: http://www.w3.org/TR/2013/WD-html51-20131029/

fengmk2 commented 10 years ago

详细请@luics 自行补充 :)

goddyZhao commented 10 years ago

@luics 邀请函已发到你github上填写的邮箱地址,请尽快回复!