求帮忙看下,自己写的tp跳转但是js不执行
echo"<styletype='text/css'>body{background:#e5e5e5;}</style>";echo"<divid='test'style...
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(Bunak/list').'";},1000);};</script>'; 展开
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(Bunak/list').'";},1000);};</script>'; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询