上一页 1 ··· 406 407 408 409 410 411 412 413 414 ··· 494 下一页
摘要: In this lesson we will look at all of the pieces that combine together to create a JWT (j AWT) or JSON Web Token. You will use node to create a JWT, a 阅读全文
posted @ 2016-07-02 04:28 Zhentiw 阅读(526) 评论(0) 推荐(0)
摘要: Improving our mouse drag event Our mouse drag event is a little too simple. Notice that when we drag around the sprite, it always positions itself at 阅读全文
posted @ 2016-07-01 02:50 Zhentiw 阅读(409) 评论(0) 推荐(0)
摘要: If you’re only instrumenting the files in your project that are under test then your code coverage report will be misleading and it will be difficult 阅读全文
posted @ 2016-06-29 01:06 Zhentiw 阅读(201) 评论(0) 推荐(0)
摘要: How much of your code runs during unit testing is an extremely valuable metric to track. Utilizing code the karma-coverage plugin and babel-plugin-__c 阅读全文
posted @ 2016-06-29 00:55 Zhentiw 阅读(257) 评论(0) 推荐(0)
摘要: When writing tests run by Karma for an application that’s bundled with webpack, it’s easiest to integrate webpack and Karma directly together. In this 阅读全文
posted @ 2016-06-28 01:48 Zhentiw 阅读(619) 评论(0) 推荐(0)
摘要: When you have a dependency that has dependencies on global variables (like jQuery or lodash) or assumes that this is bound to window, you can use the  阅读全文
posted @ 2016-06-28 01:33 Zhentiw 阅读(171) 评论(0) 推荐(0)
摘要: Let's try creating a deeper tree structure. This time we have 4 separate arrays each containing lists, videos, boxarts, and bookmarks respectively. Ea 阅读全文
posted @ 2016-06-27 21:54 Zhentiw 阅读(320) 评论(0) 推荐(0)
摘要: 1. Use a for loop to traverse the videos and bookmarks array at the same time. For each video and bookmark pair, create a {videoId, bookmarkId} pair a 阅读全文
posted @ 2016-06-27 16:31 Zhentiw 阅读(226) 评论(0) 推荐(0)
摘要: Three ways to make object immutable: 1. Use JSON.parse(JSON.stringify(obj)): this approach is little bit expense. 2. Use Object.create() This is a che 阅读全文
posted @ 2016-06-27 16:06 Zhentiw 阅读(306) 评论(0) 推荐(0)
摘要: concatAll: Exercise 12: Retrieve id, title, and a 150x200 box art url for every video You've managed to flatten a tree that's two levels deep, let's t 阅读全文
posted @ 2016-06-26 22:46 Zhentiw 阅读(406) 评论(0) 推荐(0)
上一页 1 ··· 406 407 408 409 410 411 412 413 414 ··· 494 下一页