在点击li 的时候,找到当前li 在所有li 中的索引 使用$(this) 作为index() 的参数 转载于:https://www.cnblogs.com/yigexiaojiangshi/p/9164889.html