更新时间:2022-12-18 09:33:02
我对 getItems()
显示了在某些情况下这个函数被定义为 native function 。我不知道为什么。为了避免这种麻烦,尝试重命名函数 getItems
。
更新:正如在Boris Zbarsky的评论中指出的那样,当添加窗口时,这个麻烦也可以避免。
在 getItems()(例如 window.getItems()
)
Why is this simple link example not working in Firefox? It is working in IE and Chrome.
js fiddle sample
I am using windows XP. My Firefox version is 16.0.
My research for getItems()
showed what in some situations this function is defined as native function. I don't know why. To avoid this trouble try to rename function getItems
.
UPDATE:
As specified in comment by Boris Zbarsky this trouble can be also avoided when adding window.
before getItems()
(e.g. window.getItems()
).