杰表技术论坛 's Archiver

admin 发表于 2011-9-30 10:21

typeof用来检测变量类型

typeof可能取值: "number," "string," "boolean," "object," "function," 和 "undefined."
null,[...],{...} 得值 object,  其中null 为object 应引起注意!

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.