请问大家javascript里 Function.prototype 有显示的prototype属性吗?看了个博文,说是只有firefox 才能访问,但是在firefox上alert(Function.prototype.prototype) 却没有值啊!

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/10 08:29:01
请问大家javascript里 Function.prototype 有显示的prototype属性吗?看了个博文,说是只有firefox 才能访问,但是在firefox上alert(Function.prototype.prototype) 却没有值啊!

请问大家javascript里 Function.prototype 有显示的prototype属性吗?看了个博文,说是只有firefox 才能访问,但是在firefox上alert(Function.prototype.prototype) 却没有值啊!
请问大家javascript里 Function.prototype 有显示的prototype属性吗?
看了个博文,说是只有firefox 才能访问,但是在firefox上alert(Function.prototype.prototype) 却没有值啊!

请问大家javascript里 Function.prototype 有显示的prototype属性吗?看了个博文,说是只有firefox 才能访问,但是在firefox上alert(Function.prototype.prototype) 却没有值啊!
alert(Function.prototype) ;这个就可以了,需要在firefox下的一个firebug插件的命令窗口输入.只是一个设计模式,好像是叫做原型设计模式.需要自己定义其内容,才能用到.弹出是一个空的函数定义即function () {}.需要自己写.有这个alert(Function.prototype.constructor) ;alert(Function.prototype.apply) ;alert(Function.prototype.call) ;==好多关于Function对象下面的所有方法都是最原始的方法.