개발

[javascript] 모바일 여부 체크

지승준 2014. 7. 8. 20:28
1
2
3
4
5
var ua = Stringnavigator.userAgent ).toLowerCase();
 
if(/mobile/.test(ua)){
    location.href = "이동 URL";
}
cs