由父类index 找子类index

来源:互联网 发布:matlab输入未知数矩阵 编辑:程序博客网 时间:2024/06/08 13:51
var minIndex = index;
      var maxIndex = $(event.target).parents(".bigItem").index();


      console.log("大的:" + maxIndex);
      console.log("晓得:" + minIndex);

 <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
0 0