PHP头条
热点:

php简单提示框alert封装函数


复制代码 代码如下:

/*—————————————————— */
//– 简单提示框函数
/*—————————————————— */
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>';
}

www.phpzy.comtrue/php/32413.htmlTechArticlephp简单提示框alert封装函数 复制代码 代码如下: /*—————————————————— */ //– 简单提示框函数 /*—————————————————— */ function alert ($msg,$url=")...

相关文章

PHP之友评论

今天推荐