Skip to content

Commit

Permalink
Merge branch 'v2' of https://github.com/dt-fe/weekly into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ascoders committed Nov 29, 2020
2 parents 2ca7132 + aac9aa3 commit 2b7ab34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 003.精读前后端渲染之争.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

- 服务端渲染不需要先下载一堆 js 和 css 后才能看到页面(首屏性能)
- SEO
- 服务端渲染不用关心浏览器兼容性问题(随意浏览器发展,这个优点逐渐消失)
- 服务端渲染不用关心浏览器兼容性问题(随着浏览器发展,这个优点逐渐消失)
- 对于电量不给力的手机或平板,减少在客户端的电量消耗很重要

以上服务端优势其实只有首屏性能和 SEO 两点比较突出。但现在这两点也慢慢变得微不足道了。React 这类支持同构的框架已经能解决这个问题,尤其是 Next.js 让同构开发变得非常容易。还有静态站点的渲染,但这类应用本身复杂度低,很多前端框架已经能完全囊括。
Expand Down Expand Up @@ -142,4 +142,4 @@ Next.js 是时下非常流行的基于 React 的同构开发框架。作者之

> 讨论地址是:[前后端渲染之争 · Issue #5 · dt-fe/weekly](http://link.zhihu.com/?target=https%3A//github.com/dt-fe/weekly/issues/5)
> 如果你想参与讨论,请[点击这里](https://github.com/dt-fe/weekly),每周都有新的主题,每周五发布。
> 如果你想参与讨论,请[点击这里](https://github.com/dt-fe/weekly),每周都有新的主题,每周五发布。
2 changes: 1 addition & 1 deletion 171.精读《设计模式 - Singleton 单例模式》.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Ball {
// 构造函数申明为 private,就可以阻止 new Ball() 行为
private constructor() {}

public static instance = () => {
public static getInstance = () => {
if (this._instance === undefined) {
this._instance = new Ball()
}
Expand Down

0 comments on commit 2b7ab34

Please sign in to comment.