1233333333333333333333333

随笔分类 -  JavaScript

something about javascript
摘要:原文:http://www.cnblogs.com/yunfeifei/p/4453690.html 阅读全文
posted @ 2015-07-10 13:03 hghrpg 阅读(170) 评论(0) 推荐(0)
摘要:【博文推荐】Javascript中bind、call、apply函数用法最近一直在用 js 写游戏服务器,我也接触 js 时间不长,大学的时候用 js 做过一个 H3C 的 web的项目,然后在腾讯实习的时候用 js 写过一些奇怪的程序,自己也用 js 写过几个的网站。但真正大规模的使用 js 这还... 阅读全文
posted @ 2015-07-06 23:52 hghrpg 阅读(231) 评论(0) 推荐(0)
摘要:原文:http://www.ruanyifeng.com/blog/2010/04/using_this_keyword_in_javascript.html 阅读全文
posted @ 2015-07-05 00:18 hghrpg 阅读(151) 评论(0) 推荐(0)
摘要:本文来自:http://www.ibm.com/developerworks/cn/web/1207_wangqf_jsthis/JavaScript 语言中的 this由于其运行期绑定的特性,JavaScript 中的 this 含义要丰富得多,它可以是全局对象、当前对象或者任意对象,这完全取决于... 阅读全文
posted @ 2015-07-04 23:28 hghrpg 阅读(223) 评论(0) 推荐(0)
摘要:柯里化是把接受多个参数的函数变换成接受一个单一参数的函数,并且返回一个新函数,这个新函数能够接受原函数的参数。下面可以通过例子来帮助理解。function adder(num) { return function(x) { return num + x; }}var add5 = adder(5);... 阅读全文
posted @ 2015-06-27 22:31 hghrpg 阅读(132) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-06-27 15:47 hghrpg 阅读(139) 评论(0) 推荐(0)
摘要:Item 23: Never Modify the arguments ObjectThe arguments object may look like an array, but sadly it does notalways behave like one. Programmers famil... 阅读全文
posted @ 2015-06-27 15:45 hghrpg 阅读(129) 评论(0) 推荐(0)
摘要:Item 22: Use arguments to Create Variadic FunctionsItem 21 describes a variadic average function, which can process anarbitrary number of arguments a... 阅读全文
posted @ 2015-06-27 15:00 hghrpg 阅读(141) 评论(0) 推荐(0)
摘要:Item 21: Use apply to Call Functions with DifferentNumbers of ArgumentsImagine that someone provides us with a function that calculates theaverage of ... 阅读全文
posted @ 2015-06-27 14:30 hghrpg 阅读(144) 评论(0) 推荐(0)
摘要: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 ... 阅读全文
posted @ 2015-06-24 23:49 hghrpg 阅读(191) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-06-22 22:10 hghrpg 阅读(183) 评论(0) 推荐(0)
摘要:来源:http://www.nowamagic.net/librarys/veda/detail/1715 阅读全文
posted @ 2015-06-22 21:29 hghrpg 阅读(131) 评论(0) 推荐(0)
摘要:Item61showshowasynchronousAPIsperformpotentiallyexpensiveI/Ooperationswithoutblockingtheapplicationfromcontinuingdoingworkandprocessingotherinput.Unde... 阅读全文
posted @ 2015-06-22 20:30 hghrpg 阅读(212) 评论(0) 推荐(0)
摘要:Item61:Don’tBlocktheEventQueueonI/OJavaScriptprogramsarestructuredaroundevents:inputsthatmaycomeinsimultaneouslyfromavarietyofexternalsources,suchasin... 阅读全文
posted @ 2015-06-22 20:16 hghrpg 阅读(201) 评论(0) 推荐(0)
摘要:Item64:UseRecursionforAsynchronousLoopsConsiderafunctionthattakesanarrayofURLsandtriestodownloadoneatatimeuntilonesucceeds.IftheAPIweresynchronous,itw... 阅读全文
posted @ 2015-06-22 19:57 hghrpg 阅读(208) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/jhmydear/p/4593196.html 阅读全文
posted @ 2015-06-22 14:29 hghrpg 阅读(113) 评论(0) 推荐(0)
摘要:jsonp跨域 阅读全文
posted @ 2015-06-22 14:27 hghrpg 阅读(105) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/chelen_jak/article/details/29870185 阅读全文
posted @ 2015-06-22 01:14 hghrpg 阅读(129) 评论(0) 推荐(0)
摘要:Ifyou’refamiliarwithobject-orientedprogramming,you’relikelyaccustomedtothinkingoffunctions,methods,andclassconstructorsasthreeseparatethings.InJavaScr... 阅读全文
posted @ 2015-06-22 00:43 hghrpg 阅读(229) 评论(0) 推荐(0)
摘要:http://www.woiweb.net/efficient-javascript.html 阅读全文
posted @ 2015-06-22 00:21 hghrpg 阅读(118) 评论(0) 推荐(0)

1233333333333333333333333