上一页 1 ··· 439 440 441 442 443 444 445 446 447 ··· 497 下一页
摘要: Usually we use template languages like Handlebars, JSX, and Jade to create. One simple way we can create our own template language is to write a funct 阅读全文
posted @ 2016-02-20 18:17 Zhentiw 阅读(378) 评论(0) 推荐(0)
摘要: const stores = Immutable.List([ { name: 'Store42', position: { latitude: 61.45, longitude: 23.11, }, address: 'whatever' }, { name: 'Store2', position 阅读全文
posted @ 2016-02-19 20:25 Zhentiw 阅读(428) 评论(0) 推荐(0)
摘要: Testing your AngularJS application on multiple browsers is important, and Protractor offers this ability through the multiCapabilities configuration o 阅读全文
posted @ 2016-02-19 18:49 Zhentiw 阅读(318) 评论(0) 推荐(0)
摘要: Install: npm install -g elementor Then run: webdriver-manager start Lets say if we want to test 'http://angular.github.io/protractor/#/api' page: elem 阅读全文
posted @ 2016-02-19 04:13 Zhentiw 阅读(241) 评论(0) 推荐(0)
摘要: We can use: ^: match the beginning $: match the end Let's say we have the string like the following: var str = `12/1/16 12-16-13 11/12/16 12-12-2016`; 阅读全文
posted @ 2016-02-17 20:27 Zhentiw 阅读(208) 评论(0) 推荐(0)
摘要: ES6: If you know about the Javascirpt's event loop. You know that any asyns opreations will be throwed to the end to loop, such as 'setTimeout, http c 阅读全文
posted @ 2016-02-17 02:22 Zhentiw 阅读(348) 评论(0) 推荐(0)
摘要: Regular Expression Backreferences provide us a method to match a previously captured pattern a second time. For example we have an string, and we want 阅读全文
posted @ 2016-02-16 02:19 Zhentiw 阅读(320) 评论(0) 推荐(0)
摘要: Regular Expression Word Boundaries allow to perform "whole word only" searches within our source string. Imaging we have string as follow, and we want 阅读全文
posted @ 2016-02-16 02:00 Zhentiw 阅读(295) 评论(0) 推荐(0)
摘要: 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)
上一页 1 ··· 439 440 441 442 443 444 445 446 447 ··· 497 下一页