function judgeDataType (data){ if(typeof data ==='object'){ if(data===null) return 'null' if(data instanceof Array) return 'array' if(data instanceof Object) return 'object' }else{ return typeof data } }