The project is prepared to use iframe
Similar to Taobao, Taobao's sidebar navigation will have different systems such as Tmall and International Shopping. Of course, these are developed by different departments and then integrated together, but Taobao seems to be fragmented. Yes, the address bar has changed. Now my project is similar, but the display of details on the right side of the side navigation will not change the address bar. In this way, the integrated project is like a system (actually there are several). Now I am going to use iframe. Introduction.
There are a few things you can put forward your ideas for
1. If the system introduced is relatively large, will the user experience be poor?
2. How to implement this jump? I just click and the corresponding page will appear. Can I write a piece of js to embed the iframe when I click it, and then render it?
3. If you use front-end routing, use vue-router, and put the iframe into the component, can it be rendered when the route jumps?
I guess there are still more questions in the future, just think of these now.
These are discussed by several big guys. I am responsible for experimental technical feasibility. Anyone with experience can help me. I, the salty fish, waved my fins to express my gratitude.
迷茫2017-05-19 10:19:17
iframe will be introduced as a complete page, which consumes a lot of money. If the number is large, the page will be stuck;
Yes;
Since you are using vue / vue-router, it is recommended not to consider iframe anymore. vue can already perfectly implement spa, load on demand, and switch pages without brushing, all of which are achievable;
天蓬老师2017-05-19 10:19:17
I’m curious whether the boss you are talking about is the backend or the project manager:), it seems that neither they nor you know much about vue-router. Since vue / vue-router needs to be used in conjunction with iframe, it suddenly feels like a waste of resources.
迷茫2017-05-19 10:19:17
It is recommended that you take a good look at vue/vue-router and vuex
....
The big guy you are talking about can only say that the understanding of front-end is still a few years ago...