上一页 1 ··· 439 440 441 442 443 444 445 446 447 ··· 496 下一页
摘要: Let's image tow cases for the following string: var str = `foo foobar foobaz fooboo` First of all: we know how to capture foobar or fooboo: var regex 阅读全文
posted @ 2016-02-15 02:12 Zhentiw 阅读(167) 评论(0) 推荐(0)
摘要: We'll capture groups of characters we wish to match, use quantifiers with those groups, and use references to those groups in String.prototype.replace 阅读全文
posted @ 2016-02-15 02:00 Zhentiw 阅读(267) 评论(0) 推荐(0)
摘要: Install: npm install ionic cordova -g Create a project with blank template: ionic start <project_name> blank Start: cd <proejct_name> ionic serve Then 阅读全文
posted @ 2016-02-14 02:00 Zhentiw 阅读(241) 评论(0) 推荐(0)
摘要: Somtimes, the project might set the commit message guide line, if your commit doesn't meet the requirement, ghook will reject it. If you really not su 阅读全文
posted @ 2016-02-14 01:43 Zhentiw 阅读(3338) 评论(0) 推荐(0)
摘要: When you want to push your local branch to remote branch, for the first push: git push --set-upstream origin <branch_name> The reason to set 'up-strea 阅读全文
posted @ 2016-02-14 01:34 Zhentiw 阅读(650) 评论(0) 推荐(0)
摘要: We will create an anction creator to manage the dispatch actions, to keep code maintainable and self-documenting by extracting action creators from th 阅读全文
posted @ 2016-02-12 03:32 Zhentiw 阅读(229) 评论(0) 推荐(0)
摘要: Code to be refactored: class FilterLink extends Component { componentDidMount() { const { store } = this.context; this.unsubscribe = store.subscribe(( 阅读全文
posted @ 2016-02-12 03:15 Zhentiw 阅读(363) 评论(0) 推荐(0)
摘要: Code to be refacted: const AddTodo = (props, { store }) => { let input; return ( <div> <input ref={node => { input = node; }} /> <button onClick={() = 阅读全文
posted @ 2016-02-12 02:43 Zhentiw 阅读(497) 评论(0) 推荐(0)
摘要: Currently in our main() function, we get click$ event. function main(sources) { const click$ = sources.DOM; const sinks = { DOM: click$ .startWith(nul 阅读全文
posted @ 2016-02-09 20:24 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: Our previous toy DOM Driver is still primitive. We are only able to sends strings as the textContent of the container element. We cannot yet create he 阅读全文
posted @ 2016-02-09 19:37 Zhentiw 阅读(297) 评论(0) 推荐(0)
上一页 1 ··· 439 440 441 442 443 444 445 446 447 ··· 496 下一页