2014年1月5日

摘要: 假设有以下实例:var A = function(name){ this.name = name; }var B = function(age){ this.age = age; A.apply(this,new Array());}// B.prototype = new A();var b = new B(20);if(b instanceof B){alert("true");}if(b instanceof A){alert("true");}如果我要alert出两个true ,那么只需要把注释的部分打开。 可是这种情况会B new 出来的每个对 阅读全文
posted @ 2014-01-05 13:58 白色的小菊花 阅读(545) 评论(0) 推荐(0) 编辑
 
摘要: 周六去参加一家公司的前端面试了,一家新创的公司,我心目中挺有潜力的一家新创公司,这里的潜力一词包含两层含义 阅读全文
posted @ 2014-01-05 13:44 白色的小菊花 阅读(1) 评论(0) 推荐(0) 编辑