diff --git a/src/layui.js b/src/layui.js index afa86c9..4fcd367 100644 --- a/src/layui.js +++ b/src/layui.js @@ -339,7 +339,7 @@ Lay.fn.device = function(key){ } else if(/linux/.test(agent)){ return 'linux'; } else if(/mac/.test(agent)){ - return ‘mac’; + return 'mac'; } else if(/iphone|ipod|ipad|ios/.test(agent)){ return 'ios'; }