组件化之后的js 和 原生交互就发生了很大的变化, html只管根据 url 来跳转到原生的各个界面:
-
再也不需要根据 html 的 type 来判断跳转到那个页面
-
对于需要登录、权限、定位或者其他先决条件的界面也不需要在跳转前处理
-
测试自动注入
-
router://component1/testQuery?name=webName&pass=webPass
-
打电话:router://system/callPhone?tel=17321174171
-
打电话:router://system/callPhone?tel=15857913627
-
去拍照(router://system/takePhone)
-
个人中心(router://user/personCenter)
-
https://www.baidu.com
-
https://github.com/ManbangGroup/Phantom/