上一页 1 ··· 414 415 416 417 418 419 420 421 422 ··· 468 下一页
摘要: Code to be refactored: let nextTodoId = 0; class TodoApp extends Component { render() { const { todos, visibilityFilter } = this.props; const visibleT 阅读全文
posted @ 2016-01-27 19:09 Zhentiw 阅读(210) 评论(0) 推荐(0) 编辑
摘要: The code to be refactored: let nextTodoId = 0; class TodoApp extends Component { render() { const { todos, visibilityFilter } = this.props; const visi 阅读全文
posted @ 2016-01-27 18:22 Zhentiw 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Javascript with Chorme v8 engine works like this :For Chorme engine, v8, it has call stack.And all the async opreations functions are stay in webapis.... 阅读全文
posted @ 2016-01-26 21:12 Zhentiw 阅读(898) 评论(0) 推荐(0) 编辑
摘要: Every time when a function run it will be push into the call stack and put on the top, you can think call stack is something like a heap... Javascirpt... 阅读全文
posted @ 2016-01-26 20:44 Zhentiw 阅读(550) 评论(0) 推荐(0) 编辑
摘要: The guiding principle in Cycle.js is we want to separate logic from effects. This first part here was logical, and this second part here was effects. ... 阅读全文
posted @ 2016-01-26 19:09 Zhentiw 阅读(167) 评论(0) 推荐(0) 编辑
摘要: /** * A reducer for a single todo * @param state * @param action * @returns {*} */const todo = ( state, action ) => { switch ( action.type ) { ... 阅读全文
posted @ 2016-01-15 16:48 Zhentiw 阅读(307) 评论(0) 推荐(0) 编辑
摘要: In JavaScript, you can change the content of a string using thereplacemethod. This method signature is overloaded with a bunch of different ways to do... 阅读全文
posted @ 2016-01-15 02:13 Zhentiw 阅读(236) 评论(0) 推荐(0) 编辑
摘要: var input = "foobar";var result = input.replace('bar', '$`'); // $`: replace 'bar' with everything before our match.--> foofoovar input = "foobarbaz"... 阅读全文
posted @ 2016-01-15 02:06 Zhentiw 阅读(559) 评论(0) 推荐(0) 编辑
摘要: Learn how to use array reduction to create functional pipelines by composing arrays of functions.const increase = (input) => { return input + 1;}cons... 阅读全文
posted @ 2016-01-15 01:37 Zhentiw 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Example 1:function *topicList(){ yield "ES2015"; yield "Semi-colons: good or bad?"; yield "TypeScript";}for( let topic of topicList() ){ console.l... 阅读全文
posted @ 2016-01-14 21:16 Zhentiw 阅读(190) 评论(0) 推荐(0) 编辑
上一页 1 ··· 414 415 416 417 418 419 420 421 422 ··· 468 下一页