在前端怎么打印数据类型 有时候在前端需要打印数据类型来在后台接受数据。 直接打印 var getType= data.name; // 前端接受的数据 console.log(typeof getType); //打印查看数据类型