摘要: 遇到这个问题,setTimeout(Scroll(),3000); 这种写法在IE8 下 不能够执行,提示参数无效, setTimeout(function(){Scroll()},3000);这种方式就可以了。 阅读全文
posted @ 2017-05-17 09:46 bathue 阅读(2551) 评论(1) 推荐(1) 编辑
摘要: 会在写条件判断的时候遇到,今天在判断没有剩余产品的时候,移除事件。当有产品的时候添加事件: 移除onClick事件: $("a").removeAttr("onclick").html("活动结束"); 添加onClick事件: $("a").attr("onclick","task();"); 顺 阅读全文
posted @ 2017-05-16 14:35 bathue 阅读(1239) 评论(1) 推荐(0) 编辑