上一页 1 ··· 415 416 417 418 419 420 421 422 423 ··· 469 下一页
摘要: Finally, I just noticed that the to-do app component doesn't actually have to be a class. I can turn it into a function. I prefer to-do that when poss 阅读全文
posted @ 2016-01-27 20:18 Zhentiw 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Code to be refactored: let nextTodoId = 0; class TodoApp extends Component { render() { const { todos, visibilityFilter } = this.props; const visibleT 阅读全文
posted @ 2016-01-27 20:10 Zhentiw 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
上一页 1 ··· 415 416 417 418 419 420 421 422 423 ··· 469 下一页