IE7中的FunctionExpression错误 - 修复了吗? [英] FunctionExpression bug in IE7 - fixed?

查看:43
本文介绍了IE7中的FunctionExpression错误 - 修复了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉没有IE7当前可用。


任何人都可以检查IE7测试版中是否修复了FunctionExpression错误或

保持不变(它曾经是由IE团队证实,但是他们确实做了什么?b / b
最低测试用例:


< ; html>

< head>

< title>错误测试< / title>

< meta http-equiv ="内容类型

content =" text / html; charset = iso-8859-1">

< script>

var f =(function foo(){});

window.alert(typeof foo);

< / script>

< / head>

< body>

< / body>

< / html>


正确价值:未定义 (FF,Opera)


IE6报告:功能

Sorry for not having IE7 currently available.

Could anyone check if FunctionExpression bug is fixed in IE7 beta or
stay the same (it was once confirmed by IE team, but did they do
anything?)

A minimum test case:

<html>
<head>
<title>bug test</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<script>
var f = (function foo(){});
window.alert(typeof foo);
</script>
</head>
<body>
</body>
</html>

Correct value: "undefined" (FF, Opera)

IE6 reports: "function"

推荐答案



VK D?D°D?D ??? D°D2:

....

VK D?D°D?D???D°D2:
....

var f =(function foo(){});
var f = (function foo(){});



....

....


正确值:undefined (FF,Opera)


IE6报告:功能
Correct value: "undefined" (FF, Opera)

IE6 reports: "function"



你能说明这个可能是严重错误的案例吗?

我甚至无法想象。


Val

Can you show the cases when this can be serious bug?
I can''t even imagine.

Val


sc * *******@gmail.com 写道:

VK D?D°D?D ?? D°D2:

...
VK D?D°D?D?? D°D2:
...

> var f =(function foo(){});
>var f = (function foo(){});



...

...


>正确值:undefined (FF,Opera)

IE6报告:功能
>Correct value: "undefined" (FF, Opera)

IE6 reports: "function"



你能说明这个可能是严重错误的案例吗?

我甚至无法想象。


Can you show the cases when this can be serious bug?
I can''t even imagine.



这不是一个严重的错误。 JavaScript(tm)很长一段时间也受到了影响

。这从来都不是问题,因为如果你真的需要一个名为

的函数,你可以在一个封闭的范围内声明它,然后按名称参考

它,如果你不知道的话不需要按名称引用功能然后

是匿名的,没有任何后果,如果你需要在内部调用一个匿名的

函数表单,你可以使用 - arguemnts.callee - 参考

函数。


Richard。

It is not a serious bug. JavaScript(tm) suffered from it for a long time
as well. It has never been a problem because if you really need a named
function you can just declare it in an enclosing scope and then refer to
it by name, if you don''t need to refer to a function by name it can then
be anonymous with no consequences, and if you need to call an anonymous
function form inside itself you can use - arguemnts.callee - to refer to
the function.

Richard.


Can你展示这个可能是严重错误的案例?
Can you show the cases when this can be serious bug?

>

这不是一个严重的错误。
>
It is not a serious bug.



那么它是否已修复? :-)任何安装了最新IE7测试版的人?


如果VK正在询问某些内容,那么搜索的内容并不总是必要的一些深层次的

隐藏上下文:-))我真的不知道什么,所以

在clj询问


这是一个非常小的bug(水平为[1] ,2]数组初始化程序或

更低)只需要解决一个非常小的特定问题。

So is it fixed or not? :-) Anyone with the latest IE7 beta installed?

If VK is asking something, it is not always and necessary some deeply
hidden context to search for :-)) I really didn''t know something and so
asked at c.l.j.

It is a really minor bug (of the level of [1,,2] array initializer or
lower) just needed to be sort out for a really small particular issue.


这篇关于IE7中的FunctionExpression错误 - 修复了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆