H
Hatter
I wrote these codes:
function aaa()
{
}
aaa.nnnn = "now is aaa";
alert(aaa.nnnn);
eval("func = " + aaa.toString());
alert(aaa.nnnn);
func.nnnn = "now is func";
alert(aaa.nnnn);
alert(func.nnnn);
is worked well in FF2b and Opera9, but it not worked in IE7.
in FF2b and Opera9 it outputs:
now is aaa
now is aaa
now is aaa
now is func
but in IE7 it outputs:
now is aaa
undefined
undefined
now is func
will someone tell me why? IE7's bug??
function aaa()
{
}
aaa.nnnn = "now is aaa";
alert(aaa.nnnn);
eval("func = " + aaa.toString());
alert(aaa.nnnn);
func.nnnn = "now is func";
alert(aaa.nnnn);
alert(func.nnnn);
is worked well in FF2b and Opera9, but it not worked in IE7.
in FF2b and Opera9 it outputs:
now is aaa
now is aaa
now is aaa
now is func
but in IE7 it outputs:
now is aaa
undefined
undefined
now is func
will someone tell me why? IE7's bug??