if(!function_exists('ShowMsg'))
{
function ShowMsg($msg='', $gourl='-1')
{
if($gourl == '-1')
echo 'alert("'.$msg.'");history.go(-1);';
else if($gourl == '0')
echo 'alert("'.$msg.'");location.reload();';
else
echo 'alert("'.$msg.'");location.href="'.$gourl.'";';
}
}
php常用自建函数学习(4):ShowMsg返回弹出信息并进行返回、跳转、刷新等操作
关注
打赏