您好,欢迎访问一九零五行业门户网

device - PHP 以判断移动设备跳转,怎么回跳?

require(dirname(__file__)./lib/mobile_detect.php);$detect = new mobile_detect;$devicetype = ($detect->ismobile() ? ($detect->istablet() ? 'tablet' : 'phone') : 'computer');if($_server[server_name] == nj.xxx.cn ){ if($devicetype == phone) { header(location:http://m.xxx.cn/); exit(); }}

已经判断移动设备
在手机端点使用电脑版 应该怎么处理
回复内容: require(dirname(__file__)./lib/mobile_detect.php);$detect = new mobile_detect;$devicetype = ($detect->ismobile() ? ($detect->istablet() ? 'tablet' : 'phone') : 'computer');if($_server[server_name] == nj.xxx.cn ){ if($devicetype == phone) { header(location:http://m.xxx.cn/); exit(); }}

已经判断移动设备
在手机端点使用电脑版 应该怎么处理
写session或者cookie,记录客户已经点击了使用电脑版本,然后在判断移动设备的地方加上session判断
其它类似信息

推荐信息