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

SPA渲染的优缺点。 #965

Open
pwstrick opened this issue Jun 12, 2020 · 1 comment
Open

SPA渲染的优缺点。 #965

pwstrick opened this issue Jun 12, 2020 · 1 comment
Labels
前端 包含所有不属于其它类别的题目

Comments

@pwstrick
Copy link
Owner

SPA渲染的优缺点。

@pwstrick pwstrick added the 前端 包含所有不属于其它类别的题目 label Jun 12, 2020
@pwstrick
Copy link
Owner Author

优点:

  1. 用户体验好、快,内容的改变不需要窗口重加载,避免了不必要的跳转和重复渲染。
  2. SPA让服务器的压力变小。

缺点:

  1. SEO不利于搜索引擎优化。
  2. 初次加载页面更耗时。
  3. 前进、后退、地址栏等,需要程序进行管理。
  4. 书签,需要程序来提供支持。

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

1 participant