/** * 跳转方法 * @param $msg * @param null $path * @param null $parent */ public function alert($msg,$path=NULL,$parent=NULL){ if($parent === true){ $str=<<<str <script>alert('{$msg}');parent.location.href='http://t.zoukankan.com/{$path}'</script> str; }else if(empty($path)){ $str=<<<str <script>alert('{$msg}');history.back()</script> str; }else{ $str=<<<str <script>alert('{$msg}');location.href='http://t.zoukankan.com/{$path}'</script> str; }; echo $str; }
PHP 自定义 alert 跳转方法
免责声明:文章转载自《PHP 自定义 alert 跳转方法》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇IM类软件的性能测试目的-摘录JVM知识(六):linux环境下查看JVM内存大小下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=