Why [removed]void(0) is not working in Firefox

前端 未结 2 1234
旧巷少年郎
旧巷少年郎 2021-01-16 20:56

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.

2条回答
  •  Happy的楠姐
    2021-01-16 21:55

    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.

    http://jsfiddle.net/u6bKr/3/

    UPDATE:

    As specified in comment by Boris Zbarsky this trouble can be also avoided when adding window. before getItems() (e.g. window.getItems()).

提交回复
热议问题