封装一个框架内部使用的alert

2019-04-14 20:36发布

static function showMsg($pMsg, $pUrl = false,$perant=""){ is_array($pMsg) && $pMsg = join(' ', $pMsg); echo ''; if('.' == $pUrl) $pUrl = $_SERVER['REDIRECT_URL']; if($perant=="perant"){$perant=$perant.".";}else{ $perant=""; }; echo ''); }