摘要:
#call.bind #bind.apply arguments arguments 是一个类数组对象。代表传给一个function的参数列表。 Function.prototype.call() fun.call(thisArg[, arg1[, arg2[, ...]]]) 有点像 父call( 阅读全文
摘要:
# # # # # 阅读全文
摘要:
#get #get 请求传输字符串处理 #post & FormData #timeout #load & progress 如果没有兼容性问题。可以直接使用onload、onerror、onprogress、onloadend # # # IE8、9 跨域(CORS)的实现,XDR IE10开始被 阅读全文
摘要:
#参数复用 # # # # #提前返回 #延迟计算 #bind的实现机制 阅读全文
摘要:
# [] 创建数组被认为效率更高。 # 使用语言本身自带的函数一般会比你自己写的方法效率更高。 # + 在运行数量较高时效率最高,而且相较于 String.prototype.concat() 与 Array.prototype.join() ,书写也更为便捷。 # forEach处理数组更佳? # 阅读全文
摘要:
#异步流程控制目前看还有疑惑 # 阅读全文
摘要:
# # #test 阅读全文
摘要:
奇巧淫技: ~number 取反并减1 ~~number 可实现 Math.floor()的效果 !!number 如果为0则为false,其他数值为true ES6:(...参数)可将多个参数转成数组形式,省去了[].slice.call(arguments) # this 是个参数,普通的函数调 阅读全文