06 2015 档案
摘要:参考这个http://www.cnblogs.com/wangshenhe/archive/2012/05/09/2490438.htmlhttp://www.cnblogs.com/zcttxs/archive/2012/06/12/2546293.htmlhttp://www.cnblogs.c...
阅读全文
摘要:柯里化是把接受多个参数的函数变换成接受一个单一参数的函数,并且返回一个新函数,这个新函数能够接受原函数的参数。下面可以通过例子来帮助理解。function adder(num) { return function(x) { return num + x; }}var add5 = adder(5);...
阅读全文
摘要:Item 24: Use a Variable to Save a Reference toargumentsAn iterator is an object providing sequential access to a collection ofdata. A typical API prov...
阅读全文
摘要:Item 23: Never Modify the arguments ObjectThe arguments object may look like an array, but sadly it does notalways behave like one. Programmers famil...
阅读全文
摘要:Item 22: Use arguments to Create Variadic FunctionsItem 21 describes a variadic average function, which can process anarbitrary number of arguments a...
阅读全文
摘要:Item 21: Use apply to Call Functions with DifferentNumbers of ArgumentsImagine that someone provides us with a function that calculates theaverage of ...
阅读全文
摘要:Junit源码设计模式欣赏JUnit是一个优秀的Java单元测试框架,由两位世界级软件大师Erich Gamma 和 Kent Beck共同开发完成。....向读者介绍在开发JUnit的过程中是怎样应用设计模式的。
阅读全文
摘要:Item 20: Use call to Call Methods with a CustomReceiverOrdinarily, the receiver of a function or method (i.e., the value boundto the special keyword ...
阅读全文
摘要:http://www.cnblogs.com/cuihongyu3503319/archive/2008/04/08/1142804.html参考
阅读全文
摘要:Higher-order functions used to be a shibboleth of the monks of func-tional programming, an esoteric term for what seemed like anadvanced programming t...
阅读全文
摘要:来源:http://www.nowamagic.net/librarys/veda/detail/1715
阅读全文
摘要:Item61showshowasynchronousAPIsperformpotentiallyexpensiveI/Ooperationswithoutblockingtheapplicationfromcontinuingdoingworkandprocessingotherinput.Unde...
阅读全文
摘要:Item61:Don’tBlocktheEventQueueonI/OJavaScriptprogramsarestructuredaroundevents:inputsthatmaycomeinsimultaneouslyfromavarietyofexternalsources,suchasin...
阅读全文
摘要:Item64:UseRecursionforAsynchronousLoopsConsiderafunctionthattakesanarrayofURLsandtriestodownloadoneatatimeuntilonesucceeds.IftheAPIweresynchronous,itw...
阅读全文
摘要:原文地址:http://www.cnblogs.com/jhmydear/p/4593196.html
阅读全文
摘要:http://blog.csdn.net/chelen_jak/article/details/29870185
阅读全文
摘要:Ifyou’refamiliarwithobject-orientedprogramming,you’relikelyaccustomedtothinkingoffunctions,methods,andclassconstructorsasthreeseparatethings.InJavaScr...
阅读全文
摘要:http://www.woiweb.net/efficient-javascript.html
阅读全文
摘要:http://ourjs.com/detail/52f572bf4534c0d806000024
阅读全文
摘要:http://www.ruanyifeng.com/blog/2013/01/javascript_strict_mode.html参考
阅读全文
摘要:本书赞誉译者序序前言第 1 章 让自己习惯 JavaScript 1第 1 条: 了解你使用的 JavaScript版本 1第 2 条:理解 JavaScript 的浮点数 6第 3 条:当心隐式的强制转换 8第 4 条:原始类型优于封装对象 13第 5 条: 避免对混合类型使用== 运算符 14第...
阅读全文
摘要:第 13 条:使用立即调用的函数表达式创建局部作用域这段程序(Bug 程序)输出什么?function wrapElements(a) {var result = [], i, n;for (i = 0, n = a.length; i < n; i++) {result[i] = function...
阅读全文
摘要:EffectiveJavaScript:编写高质量JavaScript代码的68个有效方法:Item11:GetComfortablewithClosuresClosuresmaybeanunfamiliarconcepttoprogrammerscomingfromlanguagesthatdon...
阅读全文
摘要:快速排序算法编辑快速排序一般指快速排序算法快速排序(Quicksort)是对冒泡排序的一种改进。快速排序由C. A. R. Hoare在1962年提出。它的基本思想是:通过一趟排序将要排序的数据分割成独立的两部分,其中一部分的所有数据都比另外一部分的所有数据都要小,然后再按此方法对这两部分数据分别进...
阅读全文
摘要:http://www.csdn.net/article/2015-06-15/2824967-es6-in-depth-generators
阅读全文
摘要:插入代码段:Ctrl+K,X。如果你想快速的输入代码,这个必须记住。配合F2一起用,那将会成为一把利器。当然,使用“Ctrl+K,S”,你可以更快速的输入像try和#Region一样的代码段。强迫显示参数信息:Ctrl-Shift-空格。这绝对是个好东西。强迫智能感知:Ctrl+J。智能感知是Vis...
阅读全文
摘要:http://www.cnblogs.com/yexiaochai/p/3961291.html来源
阅读全文
摘要:原文地址:http://www.cnblogs.com/wangfupeng1988/tag/petshop4.0/
阅读全文
摘要:http://www.ruanyifeng.com/blog/2015/06/istanbul.html
阅读全文
摘要:http://www.cnblogs.com/TomXu/archive/2012/01/12/2308594.html参考
阅读全文
摘要:参考:http://www.cnblogs.com/xiaofeixiang/p/4188600.html
阅读全文
摘要:http://www.cnblogs.com/tianzhiliang/archive/2011/09/29/2195664.html
阅读全文
摘要:http://www.cnblogs.com/sunnycoder/archive/2010/03/21/1691008.html参考
阅读全文
摘要:
阅读全文

摘要:
阅读全文
