I am going to use Weex
to do a new mobile project, but I have some doubts about page jumps. There are several options available:
Android has only one Activity, and the page jump logic is implemented through vue-router
.
Each page is an Activity, each Activity loads its own bundle.js
file, and data is transmitted through the storage
module.
Page jump is achieved through the navigator module.
The first one, I feel that after using vue-router
, the interface is very stiff and the effect is not good.
The second one is just my own imagination. I feel that the interaction will be better.
The third type, I can’t use it directly, 囧...it seems that the packaged js file must be remote, right?
I don’t know if there is a good solution for weex to achieve page jump elegantly? What do everyone use to jump to Weex pages?
I use the third one: var params = {'url':nextUrl,'animated':'true'} Just replace nextUrl with the address of your other js file. You don't need a remote address, just a local address.
You can refer to
http://www.jianshu.com/p/497f...