最常用的判断方法:typeof var a='isString'; var b=121221; var c=[1,2,3]; var d=new Date(); var e=function(){ console.log('12'); }; var f=function(){ this.name='22'; }; var g=null; var h=undefined; var i=true; console.log(typeof b) =======> number console.log(t…