Git Product home page Git Product logo

Comments (4)

lincode avatar lincode commented on September 26, 2024

Rexxar 的设计里,没有考虑使用 html 地址直接定位一个页面。
Reexar 的设计里,需要一个 route 表。这个表中有 url 到 html 资源地址的映射关系。
一个例子是:https://raw.githubusercontent.com/douban/rexxar-web/master/example/dist/routes.json
你在将参数放在 uri 中,rexxar 支持简单的 uri 模式匹配。

需要这个路由表的原因很多。其实,是多了一层缓冲。
1 本质上,这是一个使用什么做页面的 identifier 的问题。我们大约可以保证一个页面的 uri 不变。当然,你也可以说你能保证 html 资源地址不变。但我们觉得 uri 不变似乎更恰当一些。
2 我们的 native 实现的页面其实也可以用 uri 定位。这样需要 rexxar 页面的 identifier 和 native 页面的 identifier 就具有一致的格式。

from rexxar-android.

lincode avatar lincode commented on September 26, 2024

Rexxar 的 ContainerAPI 是一个协议,用于在 Rexxar Container 中扩展这样一种类型的API: native 计算的结果,但是由 web 消费。比如,设备的 GPS 信息。

from rexxar-android.

qluan avatar qluan commented on September 26, 2024

@promeG RexxarContainerAPI设计为全局有效存在一些场景不方便之处,已经提pr解决,已可以升级到 0.2.5

from rexxar-android.

promeG avatar promeG commented on September 26, 2024

@qluan 谢谢!

from rexxar-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.