获取设备信息方法完善mac的判断

This commit is contained in:
Jovi Qiao 2016-11-23 13:36:37 +08:00
parent 087fcb1290
commit af0c17f772

View File

@ -338,6 +338,8 @@ Lay.fn.device = function(key){
return 'windows'; return 'windows';
} else if(/linux/.test(agent)){ } else if(/linux/.test(agent)){
return 'linux'; return 'linux';
} else if(/mac/.test(agent)){
return mac;
} else if(/iphone|ipod|ipad|ios/.test(agent)){ } else if(/iphone|ipod|ipad|ios/.test(agent)){
return 'ios'; return 'ios';
} }