时间:2021-07-01 10:21:17 帮助过:3人阅读
<?php if (ob_get_level() == 0) { ob_start(); } echo str_pad('Loading... ',4096)."
\n"; for ($i = 0; $i < 25; $i++) { $d = $d + 11; $m=$d+10; //This div will show loading percents echo '' . $i*4 . '% complete'; //This div will show progress bar echo ' '; flush(); ob_flush(); sleep(1); } ob_end_flush(); ?> Done.
希望本文所述对大家的php程序设计有所帮助。