The daily summary
Front-end related knowledge
Use of components
If the page has the same block, you can use components, which will be very convenient later
Value transfer between components
Parent passes child props property
The concept of front and rear end separation
Traditional development: The front end must rely on the page containing the data that the back end responds to
- Does not depend on the running environment of the back end
- Need to respond to page nginx
- You need to request data Ajax
- Need to get data jSON-server simulation data
Client rendering vs server rendering
Performance difference: The client rendering machine is inferior to the server
User experience: the server rendering response to a page, the complete page content will have a lot, may be due to network speed, execution efficiency, workload reasons, caused by local lag (each time is a whole page) client: response to the first page is also easy to lag, 1. Traditional multi-page applications: each time there is a whole page, the page will jump, blink (the first screen is prone to slow) 2. Single page application: respond to a whole page for the first time, followed by partial rendering (the client does small rendering work, better experience, no page jump behavior)
Conclusion: Server rendering performance is better, client rendering experience is better combined with single page application