您当前的位置: 首页 >  数学

漏刻有时

暂无认证

  • 1浏览

    0关注

    717博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

php常用自建函数学习(4):ShowMsg返回弹出信息并进行返回、跳转、刷新等操作

漏刻有时 发布时间:2020-02-11 18:48:55 ,浏览量:1

if(!function_exists('ShowMsg'))
{
	function ShowMsg($msg='', $gourl='-1')
	{
		if($gourl == '-1')
			echo 'alert("'.$msg.'");history.go(-1);';
			
		else if($gourl == '0')
			echo 'alert("'.$msg.'");location.reload();';

		else
			echo 'alert("'.$msg.'");location.href="'.$gourl.'";';
	}
}
关注
打赏
1661217259
查看更多评论
立即登录/注册

微信扫码登录

0.0437s