setInterval on mouseout 不起作用可以帮助我吗这是我的代码
<script type="text/javascript">
$(document).ready(function() {
$("#time").load("ajaxTime.php");
var refreshId = setInterval(function() {
$("#time").load('ajaxTime.php?randval='+ Math.random());
}, 1000);
$('#stop').mouseover(function(){
clearInterval(refreshId);
});
$('#stop').mouseout(function(){
setInterval(refrashID, 1000);
});
});
</script>
<center>
<div id="stop" style="width:100px; height: 100px; border: 1px solid #000;">
<div id="time"></div>
</div>
</center>