上一页 1 ··· 438 439 440 441 442 443 444 445 446 ··· 491 下一页
摘要: 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 阅读(914) 评论(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 阅读(555) 评论(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 阅读(175) 评论(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 阅读(318) 评论(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 阅读(244) 评论(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 阅读(566) 评论(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 阅读(229) 评论(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 阅读(195) 评论(0) 推荐(0)
摘要: Iterables return an iterator object. This object knows how to access items from a collection 1 at a time, while keeping track of its current position ... 阅读全文
posted @ 2016-01-14 21:07 Zhentiw 阅读(174) 评论(0) 推荐(0)
摘要: How to use:export default function getReplies(topicId){ return new Promise(function( resolve, reject ){ _getRepliesForTopic(topicId, function(data... 阅读全文
posted @ 2016-01-14 20:54 Zhentiw 阅读(191) 评论(0) 推荐(0)
上一页 1 ··· 438 439 440 441 442 443 444 445 446 ··· 491 下一页