复制代码 代码如下:
//********弹出alert框并跳转到指定页面******//
function alert($message,$url='',$isalert=true,$title='提示'){
echo '<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title>',$title,'</title></head><body>';
echo '<script type="text/javascript">';
echo $isalert?'alert("'.$message.'");':'';
echo $url==''?'history.back();':'location.href="'.$url.'";';
echo '</script>';
echo '</body></html>';
exit();
}
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!