理解js的几个关键问题(1):全局变量new和关于hasOwnPropery和PropertyIsEnumerable 等
摘要:
一、作用域和全局变量var test=function(){ var a=1; setTimeout(function(){ console.log(a); a=2; },1000); a=3; setTimeout(function(){ ... 阅读全文
posted @ 2014-05-15 10:44 dhj 阅读(420) 评论(0) 推荐(0) 编辑