在new Vue({

methods:{

    method:function(){

  
var $this = $(event.currentTarget);
var $third_level = $('#third_level');
var $second_level = $("#second_level");

//$("#select_all").attr('id',$this.attr('id'));
$(vm.$refs.select_all).attr("id",$this.attr('id'));

    }

})

vue.js ref and vm.$refs取代$("#id")操作dom

相关文章:

  • 2021-12-23
  • 2021-11-08
  • 2022-12-23
  • 2021-08-14
  • 2021-05-20
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案