这个我前几天刚刚遇到
我度娘了很久,最后是用设置超时做的
如果你没思路 就随便看看我的这个代码
var isHover = false; $('.isLogin').hover(function(){ isHover = true; $('.userBox').fadeIn(); },function(){ isHover = false; setTimeout(function() { if (!isHover) { $(".userBox").fadeOut(); } }, 500); }); $(".userBox").hover(function() { isHover = true; }, function() { isHover = false; $(".userBox").fadeOut(); });
$(".typeinfo").each(function(){
var temp=this;
$(this).children("span").click(function(){
$(temp).next().toggle();
});
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
这个我前几天刚刚遇到
我度娘了很久,最后是用设置超时做的
如果你没思路 就随便看看我的这个代码
$(".typeinfo").each(function(){
var temp=this;
$(this).children("span").click(function(){
$(temp).next().toggle();
});
});