how to make it work
This question already has an answer here:
jQuery provides inArray for arrays so you can avoid using the array version of indexOf (not present in IE8).
Two of your other examples are using the string version of indexOf which does exist in IE8.
链接地址: http://www.djcxy.com/p/18962.html上一篇: 为什么indexOf在Internet Explorer中不起作用?
下一篇: 如何使它工作