【发布时间】:2016-09-23 09:03:26
【问题描述】:
论文。胆大。散文
论文。胆大。散文
论文。胆大。散文
论文。胆大。散文
鼠标事件功能:
function stat(){
$('p').mouseenter(function(){
$(this).find('b').css({background:'yellow',color:'red'});
$(this).mouseleave(function(){
$(this).find('b').css({background:'transparent',color:'black'})
})
})
}
windows 调整 jquery 代码大小:
$(window).resize(function(){
if( $(window).width() < 480 ){
$('p').find('b').css({background:'red',color:'white'});
// stopped stat() function !..
}else{
$('p').find('b').css({background:'transparent',color:'black'});
// start stat() function !..
stat();
}
})
我需要;停止函数 stat()。 stat()函数在第一次工作时不会停止
【问题讨论】:
标签: javascript jquery function events