Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは、Xubuntu、Google Chrome 18.0.1025.162、および Firefox 13.0.1 で得られるものです。ここでフィドル。
jQuery.inArray が壊れていますか、それともばかげた間違いを犯していますか?
inArray()jQuery メソッドは のようにインデックスを返しますindexOf()。
inArray()
indexOf()
ifjQuery API のテストを他のものと同じように変更すると、それらは一致します。
if
だから、いいえ、それは壊れていません:-)