Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vue] 33. vue 等单页面应用及其优缺点 #424

Open
qiilee opened this issue Oct 8, 2019 · 2 comments
Open

[vue] 33. vue 等单页面应用及其优缺点 #424

qiilee opened this issue Oct 8, 2019 · 2 comments
Labels

Comments

@qiilee
Copy link
Member

qiilee commented Oct 8, 2019

答案:

优点:
1、用户体验好、快,内容的改变不需要重新加载整个页面,避免了不必要的跳转和重复渲染。
2、前后端职责业分离(前端负责view,后端负责model),架构清晰
3、减轻服务器的压力

缺点:
1、SEO(搜索引擎优化)难度高
2、初次加载页面更耗时
3、前进、后退、地址栏等,需要程序进行管理,所以会大大提高页面的复杂性和逻辑的难度

@qiilee qiilee added the VUE label Oct 8, 2019
@zxyongyo
Copy link

spa(单页面应用)
优点:1、用户体验好、快,内容的改变不需要重新加载整个页面,避免了不必要的跳转和重复渲染。
2、前后端职责业分离(前端负责view,后端负责model),架构清晰
3、减轻服务器的压力
缺点:1: SEO(搜索引擎优化)难度高
2: 初次加载页面更耗时
3:前进、后退、地址栏等,需要程序进行管理,所以会大大提高页面的复杂性和逻辑的难度

@qiilee
Copy link
Member Author

qiilee commented Nov 7, 2019

@zxyongyo 已采纳!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants