Comments (4)
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.
Rexxar 的 ContainerAPI 是一个协议,用于在 Rexxar Container 中扩展这样一种类型的API: native 计算的结果,但是由 web 消费。比如,设备的 GPS 信息。
from rexxar-android.
@promeG RexxarContainerAPI设计为全局有效
存在一些场景不方便之处,已经提pr解决,已可以升级到 0.2.5
from rexxar-android.
@qluan 谢谢!
from rexxar-android.
Related Issues (20)
- api拦截,如何得到post请求body HOT 1
- public static final String CONTAINER_WIDGET_BASE = SCHEMA + "://rexxar-container/widget"; HOT 1
- Intercepter 添加 headers 信息不成功 HOT 4
- 可以方便定制使用 腾讯 X5 内核么? HOT 5
- 是不是Android和ios 版的 必须和 rexxar-web 配合使用才行?
- 5.0手机上加载不出来页面 HOT 1
- POST 请求 处理有BUG 会导致 参数发送两遍
- rexxar-web 开发 打包问题
- Android 数据请求问题 HOT 2
- 页面跳转及传递参数问题 HOT 2
- 建议修改 HOT 3
- js 缓存失败 HOT 7
- 还维护么 rexxar环境 和 内嵌h5环境 cookie丢失 HOT 2
- Webview 回退时 页面会刷新
- 关于AAR包中的manifest中allowBackup为true的问题
- RouteManager中的单例模式写的应该是不对的 HOT 1
- 关于WebViewClient中对于html缓存的检查
- xss漏洞
- There is a vulnerability in okhttp 3.10.0,upgrade recommended
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rexxar-android.