判断字符串类型 typeof(x) === "string" // boolean 判断对象/数组类型 {} instanceof Object // boolean [] instanceof Array // boolean