先看代码
	alert(typeof null);  //object
	alert(typeof Object.prototype); //object
	alert(null instanceof Object); //false
	alert(Object.prototype instanceof Object); //false


从结果可以看出,null和Object.prototype都不是对象。

	alert(typeof Function.prototype);
	alert(Function.prototype instanceof Function);


这也是个特例,也就是说Function.prototype并不是个Function
评论
发表评论

您还没有登录,请登录后发表评论

weiqingfei
搜索本博客
存档
最新评论