摘要: 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) 编辑