JavaScript中有5中简单数据类型(基本数据类型):undefined,null,boolean,number,string。 还有一种复杂数据类型 object。object本质上由一组无序的名值对组成。