print str_repeat(" ",4096);
for($i = 10;$i>0;$i= $i - 1){
echo $i.'<br/>';
ob_flush();
flush();
sleep(2);
}
ob_end_flush();<script type="text/javascript">
function deles(a){
var t= 'show'+a;
var box = document.getElementById(t);
if(box){
box.parentNode.removeChild(box);
}
</sciprt>
print str_repeat(" ",4096);
for($i = 10;$i>0;$i= $i - 1){
echo $i.'<br/>';
ob_flush();
flush();
sleep(2);
$logs= "<div id='show{$j}'>";
$log="当前第 $j 个";
$loge= "</div>";
$ss= $j-1;
echo "<script>deles({$ss})</script>";
}
ob_end_flush(); 最佳答案