$plat=!empty($_GET['P'])?$_GET['P']:"front"; 区分前后台,通过P来分前台后台,初始化默认值为前台。
? : 是三目运算符$plat=!empty($_GET['P'])?$_GET['P']:"front";的意思是 如果 $_GET['P'] 有值,不为空 则赋值给 $plat如果 $_GET['P'] 为空 ,则 赋值 ‘front’给 $plat。
posted on 2016-08-30 13:12 飞离地平线 阅读(210) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3