if(!function_exists('ShowMsg'))
{
function ShowMsg($msg='', $gourl='-1')
{
if($gourl == '-1')
echo '<script>alert("'.$msg.'");history.go(-1);</script>';
else if($gourl == '0')
echo '<script>alert("'.$msg.'");location.reload();</script>';
else
echo '<script>alert("'.$msg.'");location.href="'.$gourl.'";</script>';
}
}
php常用自建函数学习(4):ShowMsg返回弹出信息并进行返回、跳转、刷新等操作
原创
©著作权归作者所有:来自51CTO博客作者漏刻有时的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
弹出按钮
闲的做个弹出按钮btn
javascript html -
PyQt自动弹出消息框(不借助按钮关联)
目录1,问题背景2,解决方法3,运行结果1,问题背景编译原理课设中,按钮绑定了一个语法
PyQt 消息弹框用法 不关联按钮自动弹出消息 控件 解决方法