上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 40 下一页
摘要: ObjectsObject Usage and PropertiesEverything in JavaScript acts like an object, with the only two exceptions beingnullandundefined.false.toString(); /... 阅读全文
posted @ 2014-10-05 00:49 wuhn 阅读(396) 评论(0) 推荐(0) 编辑
摘要: Although JavaScript is very powerful, the language’s fundamentals do not have a very steep learning curve. Prior to the explosion of web applications,... 阅读全文
posted @ 2014-10-05 00:27 wuhn 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Are you baffled(阻碍;使迷惑) by thenewoperator in JavaScript? Wonder what the difference between a function and a constructor is? Or what the heck a protot... 阅读全文
posted @ 2014-10-04 23:40 wuhn 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Are you baffled(阻碍;使迷惑) by thenewoperator in JavaScript? Wonder what the difference between a function and a constructor is? Or what the heck a protot... 阅读全文
posted @ 2014-10-04 23:40 wuhn 阅读(185) 评论(0) 推荐(0) 编辑
摘要: function对象都是Function的实例:> Object.getOwnPropertyNames(Function)[ 'length', 'name', 'arguments', 'caller', 'prototype' ]所以function对象也应该有这些方法或者是属性:所以... 阅读全文
posted @ 2014-10-04 19:05 wuhn 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-10-04 18:37 wuhn 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Divides one thing entire to many objects;Like perspectives, which rightly gazed uponShow nothing but confusion. . .—William Shakespeare, The Tragedy o... 阅读全文
posted @ 2014-10-04 11:24 wuhn 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 程序能一次写完并正常运行的概率很小,基本不超过1%。总会有各种各样的bug需要修正。有的bug很简单,看看错误信息就知道,有的bug很复杂,我们需要知道出错时,哪些变量的值是正确的,哪些变量的值是错误的,因此,需要一整套调试程序的手段来修复bug。第一种方法简单直接粗暴有效,就是用print把可能有... 阅读全文
posted @ 2014-10-04 09:51 wuhn 阅读(184) 评论(0) 推荐(0) 编辑
摘要: //构造缓存函数var memoizer = function (memo, fundamental) { var shell = function (n) { var result = memo[n]; if (typeof result !== 'number'... 阅读全文
posted @ 2014-10-03 21:43 wuhn 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Most built-in JavaScript types are constructors whose prototypes contain the methods and other properties that define their default behavior://(result... 阅读全文
posted @ 2014-10-03 21:15 wuhn 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 40 下一页