echo "<style type='text/css'>body{background: #e5e5e5;}</style>";
echo "<div id='test' style='background: #fff; width: 200px; height: 200px; font-size:30px; text-align:center; margin: 0 auto; padding-top: 20px;'><p>自动单击</p><input type='button' id='aaaa' value='确定'></div>";
echo '<script type=text/javascript>document.getElementById("aaaa").onclick=function (){setTimeout(function(){location.href="'.U('Index/index').'";},1000);};</script>';
这问题出在哪,怎么不跳转呢 最佳答案