摘要: 使用JavaScript变量时是无法判断出一个变量是0 还是“”的 这时可用typeof()来判断变量是string 还是number来区分0和“”, typeof(undefined) == 'undefined' typeof(null) == 'object' typeof("") == 's 阅读全文
posted @ 2016-03-28 17:39 .追风逐月 阅读(143) 评论(0) 推荐(0) 编辑