mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
commit
b6ceae2e38
@ -336,6 +336,8 @@ Lay.fn.device = function(key){
|
||||
return 'windows';
|
||||
} else if(/linux/.test(agent)){
|
||||
return 'linux';
|
||||
} else if(/mac/.test(agent)){
|
||||
return 'mac';
|
||||
} else if(/iphone|ipod|ipad|ios/.test(agent)){
|
||||
return 'ios';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user