JS中精确判断对象的类型

var a = [1,2,3,4,5]; var b = function(){} var c = {'age':18,'sex':'男'} console.log(typeof a,typeof b, typeof c) console.log(Object.prototype.toString.apply(a),Object.prototype.toString.call(b),Object.
相关文章
相关标签/搜索