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
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
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
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:
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