标签:
获取值的类型:
var toString = Object.prototype.toString; function getType(o) { return toString.call(o).slice(8,-1); }
document.write(getType(null)); document.writeln("<br/>"); document.write(getType(undefined));
输出:
标签:
原文地址:http://www.cnblogs.com/zhangyuanbo12358/p/5538565.html