<!doctype html> <html> <head> <title>progress</title> <script type="text/javascript" src="javascript/jquery.js"></script> <script type="text/javascript"> var currentValue = 0;//进度条当前数据 var maxValue = 100;//进度条最大值 var myIndex; $(function () { $('#myProgress').val(currentValue); $('#myProgress').attr('max',maxValue); myIndex = setInterval(plusValue,100); }); function plusValue() { if (currentValue < maxValue) { currentValue++; $('#myProgress').val(currentValue); } else { clearInterval(myIndex); alert('加载完成'); } } </script> </head> <body> <progress id="myProgress" ></progress> </body> </html>