<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="js/jquery.min.js"></script>
</head>
<body>
<div class="helloweb">0%</div>
<script>
$(document).ready(function(e) {
var txt = $(".helloweb");
(function(){
var v = parseInt(txt.html());
if(v < 80){
// txt.html(++ v +'%');
txt.html(++ v +'s');
setTimeout(arguments.callee,1000);//每1000毫秒增长一次
};
})();
});
</script>
</body>
</html>

相关文章:

  • 2022-01-21
  • 2022-02-24
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2022-01-08
  • 2021-12-02
  • 2021-11-14
  • 2022-01-12
  • 2021-12-25
  • 2022-12-23
  • 2021-05-23
相关资源
相似解决方案