1.类型的判断: js五种简单数据类型有:null,undefined,boolean,number,string。 还有复杂的数据类型:Object,Function,RegExp,Date,自定义的对象,比如:Person等。 typeof一般用来判断boolean,number,string,instanceof一般用来判断对象类型。但它们都有缺陷。比如:firame里面的数组实例就不是父窗口的Array的实例,调用instanc...