jquery 记录大全

//清除自动记时

clearTimeout(auto);

auto = setTimeout(function(){

  alert(123);
},3000);

//点击切换方法

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

 

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

attr 实际操作,prop样式操作

posted @ 2018-06-15 18:11  我是谁,我在做什么  阅读(63)  评论(0编辑  收藏  举报