1,IE6/7/8中typeof运算符对BOM对象如window,document,location,history等错误的返回“object”,标准浏览器都返回“function”。

alert(typeof window.alert);
alert(typeof document.write);
alert(typeof document.getElementById);
alert(typeof document.getElementsByTagName);
alert(typeof location.reload);
alert(typeof history.go);

2,Safari/Chrome对正则对象错误的返回function

var bb = new RegExp('bb');
alert(typeof /aa/);// --> function
alert(typeof bb);// --> function

作者: snandy 发表于 2011-03-18 16:59 原文链接

推荐.NET配套的通用数据层ORM框架:CYQ.Data 通用数据层框架