jquery 记录大全

//清除自动记时

clearTimeout(auto);

auto = setTimeout(function(){

  alert(123);
},3000);

//点击切换方法

$('.a-label-checkbox').toggle(
  function(){
    alert(方法1);
  },
  function(){
    alert(方法2);
  }
);

jquery中arrt()和prop()的区别

attr 实际操作,prop样式操作

原文地址:https://www.cnblogs.com/my2018/p/9188539.html