<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<TITLE> New Document </TITLE>
<script>
var countup = function(){
var $div = $('div'),
i = parseInt($div.text());
$div.html(++i);
setTimeout(countup, 1000);
};
countup();
</script>
</HEAD>
<body>
<div>0</div>
</body>
</HTML>
假设我这边把++i换成i++,为什么就不会计时了,这是什么逻辑呢?
stone310
微积分2016
ForDeer
W_YYJ
咎咎咎
chwech
大白__
MarlboroKay
相关分类