The Wayback Machine - https://web.archive.org/web/20200712132804/https://github.com/topics/learning-js
Skip to content
#

learning-js

Here are 147 public repositories matching this topic...

berwin
berwin commented Dec 2, 2015

git的快捷键 alias,加 oh-my-zsh应该是使用中比较实用的小技巧

在实际应用中,一遍一遍输入git status,git status,git commit -m 'xx'什么的确实挺繁琐,于是配置alias可以简化成 gst === git status,gcmsg 'xxx' === git commit -m 'xxx',gp === git push等等。。

大概是这样配置的

  • alias gst='git status'
  • alias gp='git push'
  • alias gp='git push'

而且还发现oh-my-zsh默认用的插件是git,查看oh-my-zsh的config

cat ~/.zshrc

其中有一条配置是

plugins=(git)

那么刨根问底拦不住,看看git插件的配置

`

Andraw-lin
Andraw-lin commented Feb 16, 2020

相信各位对于 Vue 和 React 都不陌生,尤其是在日常开发过程中基本没有离开过它们。那么要是有人询问你,用了这两个框架这么久,你觉得它们之间有什么不一样的地方呢?

甭急,下面就根据我自己的思考,来谈谈它们之间的区别到底有哪些。

数据是否可变性

在 Vue 中,推崇的是数据响应式,通过封装修改响应式属性自动通知 Watcher 依赖更新视图的过程,让开发者注重处理逻辑。

而在 React 中, 推崇的则是数据的不可变性,由于 React 追随的是函数式编程,因此会结合 Immutable 来实现数据的不可变。

处理组件的思想不一致

在 Vue 中,实现一个组件需要结合 Template、CSS、Javascript三部分内容,分别对应于结构层、表示层、行为层。

而在 React 中,由于追随的是函数式编程,在处理组件时一

Improve this page

Add a description, image, and links to the learning-js topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the learning-js topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.