摘要: function bar() { return foo; foo = 10; function foo() {} var foo = 11;}alert(typeof bar());结果是 function 阅读全文
posted @ 2014-03-05 13:35 Western Journey 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-05 09:57 Western Journey 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一般都设置display=' ',因为display='none'在某些浏览器里不生效 阅读全文
posted @ 2014-03-05 09:13 Western Journey 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 结果:结论:未经初始化的变量,会保存一个特殊的值-------undefined结果:dayVal is not defined 阅读全文
posted @ 2014-03-05 08:58 Western Journey 阅读(165) 评论(0) 推荐(0) 编辑