一、判断数据类型/** * 类型检测函数 * 为typeof关键字的增强版,可以准确判断null,date类型 * 原理是使用V8引擎最初的toString方法观察数据类型 * @param {Object} obj 任意对象,例如null,undefined,date * @return {String} 类型的全小写字符串 */ function type(obj) { re

- 阅读全文 -