##拿不到keyup的索引,拿到的總是最後一個class對應的索引
寫反了,應該是 $(this).index($(".select2-input"))
$(this).index($(".select2-input"))
寫反了,應該是
![](http://img.php.cn/upload/image/000/000/000/fa3b7970faf780d670535d09b1cfc621-0.png)
$(this).index($(".select2-input"))