jQuery点击按钮  切换样式

 

 

 userStatueCheck(e,value){
      console.log((e.currentTarget));
      if($(e.currentTarget).hasClass('tagbackground')){
             $(e.currentTarget).removeClass('tagbackground');
        } else {
            $(e.currentTarget).addClass('tagbackground');
            $(e.currentTarget).siblings().removeClass('tagbackground');
        }
      this.getUser();
    },

相关文章:

  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2021-04-09
  • 2021-06-23
  • 2021-08-27
  • 2021-04-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-03-25
  • 2021-12-18
  • 2022-02-13
相关资源
相似解决方案