总结 村口耿师傅 2019-08-19 167 阅读1分钟 1.基本数据类型:string、number、Boolean、null、undefined 引用数据类型:object(数组、对象、函数、正则、date、Math) 2.基本数据类型是操作值 引用数据类型是操作地址 3. 数据类型检测方法: Typeof 、instanceOf 4. 数组从小到大排序 (1) obj.sort(function(a,b){a-b})