showMessage方法
/** * Alert show message * @param string $message * @param string $mode 跳转地址 * @return void */ function showMessage($message, $mode = "back") { ob_start(); if($mode == "back") { $cmd = "history.go(-1)"; } else { $cmd = "location.href = '" . $mode . "';"; } echo ''; ob_end_flush(); exit(); }