typeof在safari和opera下的bug

日期:2009-03-03    阅读:86   分类:Javascript

比如定义 var t = function(){};
然后 typeof t == "function" ,在ie和firefox下都返回true,但在safari和opera下却返回false,初步猜想可能是自己有做了某种转换。


最后 (typeof t).toString() == "function"问题解决~

本页链接: http://www.scriptlover.com/static/461-typeof-safari-opera

标签:

相关文章

网友评论

#1: 2011-7-23 8:25:00 by 豪情

新版本已经修复了这个bug可以放心用了。

#2: 2011-9-29 9:38:00 by Rowdyiparipark#szarvas.hu

my hat is off to your astute commnad over this topic-bravo!

Leave a comment

 required

 required (Not published)

 required