const filter = "win16|win32|win64|mac|macintel";
if ( navigator.platform ) {
if ( filter.indexOf( navigator.platform.toLowerCase() ) < 0 ) {
//mobile
} else {
//pc
}
}
'기록' 카테고리의 다른 글
시맨틱하게 HTML 짜기 (0) | 2020.08.03 |
---|---|
Git Category (0) | 2020.07.30 |
package.json (0) | 2020.07.21 |
[Vue] Cli? Webpack? 간단 개념 (0) | 2020.07.08 |
Git alias (0) | 2020.06.30 |