javascript - About single page applications and routing
漂亮男人
漂亮男人 2017-06-10 09:48:14
0
1
802

Like single-page applications written with Vue and Angular

The routing document states that the content following # will be ignored by the server, and the function of the content following # needs to be implemented on the client

I don’t understand routing clearly. Does it mean loading all pages or components from the server during initialization? Wouldn't it be heavy to load for the first time?

漂亮男人
漂亮男人

reply all(1)
phpcn_u1582

Hash routing, the server will indeed ignore the content after #, but this should have nothing to do with loading those pages and components. I have never written a single-page application using Vue and Angular, but I can directly implement routing-based code separation by using React-router with webpack. If I use webpack2, I can also dynamically import.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template