Blame view

app/static/js/change_jquery.js 562 Bytes
7820380e   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  //切换
  $(".rz_query_right_header li").on('click',function(){
      var type=$(this).attr("data.value");
      $(this).addClass('two_active').siblings().removeClass('two_active');
      if(type=="1"){
          $(".first_lc").toggle();
           $(".two_lc").toggle();
      }else{
          $(".two_lc").toggle();
          $(".first_lc").toggle();
      }
  })
  $('.li_if').click(function(){
      let left_distance = $(this).position().left + $(this).width()/2 - 16
      $('.change_li').css("left",left_distance)
      console.log($(this).position().left + $(this).width()/2 - 16)
  })