需求:
第一次点击按钮,区块关闭,过3秒自动出现,第二次点击按钮,关闭,不再出现!!!
var flag = true;
$(".close1").click(function(){
if(flag){
$("#bt_active").hide();
setTimeout(function(){$("#bt_active").show()},3000);
flag=false;
}else{
$("#bt_active").hide();
}
});写的不对,新手,求大神帮助!!!!
蓝山帝景
偶然的你
随时随地看视频慕课网APP
相关分类