一、typeof运算符: typeof运算符,可以在程序运行阶段动态获取变量的数据类型。用法:typeof 变量名返回值:“undefined”、“number”、“string”、“boolean”、“object”、“function”