Redux总结

JS的状态管理框架1.Redux: Single Source of Truth2.1.Redux: 可预测性2.2.state + action = new state2.3纯函数更新Store深入理解Store,Action,Reducer理解storeconst store = create(reducer) 1.getState() 2.dispatch(action) 3.subscri

- 阅读全文 -

ARST18

A20. Valid ParenthesesGiven a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.An input string is valid if:Open brackets must be closed by

- 阅读全文 -

ARST17

A24 Swap Nodes in PairsExample:Given 1->2->3->4, you should return the list as 2->1->4->3.def swapPairs(self,head): pre,pre.next = self,head while pre.next and pre.next.next:

- 阅读全文 -

Modern JS

Table of contentsvarialbe declaration:var,const,letIn javaScript.there are three keywords avaiable to declare a variable,and each has its differences Those are var,let and constvariablevariablescopeRe

- 阅读全文 -

最新文章

最近回复

分类

标签

归档

其它

  • 熊熊的个人博客
  • Hanny's Blog