php简单提示框alert封装函数

2026-01-17 15:22:04 作者:用户投稿
复制代码 代码如下:
/*—————————————————— */
//– 简单提示框函数
/*—————————————————— */
function alert ($msg,$url=")
{
$str = '<script type="text/javascript">';
$str.="alert('".$msg."');";

if ($url != ")
{
$str.="window.location.href='{$url}';";
}
else
{
$str.="window.history.back();";
}
echo $str.='</script>';
}

联络方式:

4008905355

邮箱:9196886@qq.com

Q Q:9196886

微信二维码