复制代码 代码如下:
/*—————————————————— */
//– 简单提示框函数
/*—————————————————— */
function alert ($msg,$url=")
{
$str = '<script type="text/javascript">'; <br>$str.="alert('".$msg."');"; <br>if ($url != ") <br>{ <br>$str.="window.location.href='{$url}';"; <br>} <br>else <br>{ <br>$str.="window.history.back();"; <br>} <br>echo $str.='</script>';
}
以上就介绍了pale kid raps fast php简单提示框alert封装函数,包括了pale kid raps fast方面的内容,希望对PHP教程有兴趣的朋友有所帮助。











