摘要: typeof和instanceofvar name = 'sam';console.log(typeof name);typeof 操作符会告诉你对象的类型是 string.number,function,boolean,undefined不过,对于其他变量,typeof只会告诉你object。具体... 阅读全文
posted @ 2015-10-28 21:41 chenjef 阅读(94) 评论(0) 推荐(0) 编辑