日期:2014-05-16  浏览次数:20317 次

javascript 得到对象类型
Object.prototype.toString.call(obj)
返回值
[object Boolean]
[object Number]
[object String]
[object Function]
[object Array]
[object Date]
[object RegExp]
[object Object]