随笔分类 - JavaScript
something about javascript
摘要:原文:http://www.cnblogs.com/yunfeifei/p/4453690.html
阅读全文
摘要:【博文推荐】Javascript中bind、call、apply函数用法最近一直在用 js 写游戏服务器,我也接触 js 时间不长,大学的时候用 js 做过一个 H3C 的 web的项目,然后在腾讯实习的时候用 js 写过一些奇怪的程序,自己也用 js 写过几个的网站。但真正大规模的使用 js 这还...
阅读全文
摘要:原文:http://www.ruanyifeng.com/blog/2010/04/using_this_keyword_in_javascript.html
阅读全文
摘要:本文来自:http://www.ibm.com/developerworks/cn/web/1207_wangqf_jsthis/JavaScript 语言中的 this由于其运行期绑定的特性,JavaScript 中的 this 含义要丰富得多,它可以是全局对象、当前对象或者任意对象,这完全取决于...
阅读全文
摘要:柯里化是把接受多个参数的函数变换成接受一个单一参数的函数,并且返回一个新函数,这个新函数能够接受原函数的参数。下面可以通过例子来帮助理解。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 ...
阅读全文
摘要: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 ...
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号