2017年8月15日

callback 模式

摘要: 回调,是一种机制,同时也是一种设计模式。 我们定义一个函数,让能够回调 这个函数的作用是需要传递一个 callback 函数作为参数。该 callback 函数具有一个参数 _products,可以对 procucts 进行处理。 那么回调函数本质是什么?简单来讲就是通过封装一个参数为回调函数的函数 阅读全文

posted @ 2017-08-15 20:57 Lemo_wd 阅读(214) 评论(1) 推荐(0) 编辑

Redux-example

摘要: Redux-example Examples from http://redux.js.org/docs/introduction/Examples.html Counter Vanilla Run the Counter Vanilla example: index.html <!DOCTYPE 阅读全文

posted @ 2017-08-15 17:01 Lemo_wd 阅读(423) 评论(0) 推荐(0) 编辑

导航