yuweijun'blog
Friday, March 21, 2008
difference of function toString() in IE7 and FF2
IE7:
alert(/x/.test(function(){'x';}))
// => true
(function(){'x';}).toString();
// => "(function(){'x';})"
FF2:
alert(/x/.test(function(){'x';}))
// => false
(function(){'x';}).toString();
// => "function () { }"
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment