![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
文章平均质量分 79
qiucheng55
这个作者很懒,什么都没留下…
展开
-
对于async的错误理解
/** * Created by qiucheng on 15/8/27. */var async = require("async");var arr = [1, 2, 3];var transformed = arr.map(function (ele) { return ele * 3;});console.log(transformed);async.ma原创 2015-08-27 15:24:21 · 499 阅读 · 0 评论 -
async注意点
1.如果在第二个function中不使用异步的话,end会先被打印。原因如下 parallel(any function in async) is about kicking-off I/O tasks in parallel, not about parallel execution of code. If your tasks do not use any timers or pe原创 2015-08-27 16:24:55 · 445 阅读 · 0 评论 -
lodash摘要
1.forEach=each ,forEachRight _.forEach(collection, function(name, index) { if (name === 'Kelly') { console.log('Kelly Index: ' + index); return false;//退出循环原创 2015-08-31 10:01:24 · 1227 阅读 · 0 评论 -
Karma for angular
module.exports = function (config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: true, // ba原创 2016-01-12 13:15:26 · 346 阅读 · 0 评论 -
Javascript那些烦人的细节
for in循环遍历所有该对象enumerable的properties,包括原型链上继承过来的,但不包括symbols。Object.keys返回给对象上所有的自己的额numerable properties(即不返回原型链上的)Object.getOwnPropertyNames返回所有该对象上的属性名,包括不可枚举的(不返回原型链上的)Object.get原创 2017-05-03 15:43:28 · 305 阅读 · 0 评论