JS数据类型判断,typeof和instanceof的区别
typeof和instanceof的区别typeof用于数据类型的判断,返回值有number、string、boolean、function、undefined、object 六个。<script> var a, b, c, d, e, f,g,h,i; a = [1, 2, 3, 4, 5]; b = 1; c = "weaface"; d = false; f