Ajax+PHP实现的模拟进度条功能示例 本文实例讲述了Ajax+PHP实现的模拟进度条功能。分享给大家供大家参考,具体如下: 一 代码 fun.js: function progress(){ setInterval("beginProgress()", 200); } function beginProgress(){ $.get("progress.php", null, function(data){ $("#pg").css("width", data+"%"); $("#pgtext").html("The progress is "+data+"%"); }); } index.php: