다음과 같이 코드 코드를 복사하십시오.
<script type = "text/javaScript">
if (/applewebkit.* mobile/i.test (navigator.useragent) || (/midp | symbianos | nokia | samsung | lg | nec | tcl | bird | dbtel | haier | len | len ovo | mot- | Nokia |. 소니 릭슨 |
if (window.location.href.indexof ( "? mobile") <0) {{
노력하다 {
if (/android | webos | iPhone | iPodododirry/i.test (navigator.userages)) {{
Window.location.href = "모바일 페이지";
} else if (/ipad/i.test (navigator.useragent)) {{
Window.location.href = "태블릿 페이지";
} 또 다른 {
Window.location.href = "기타 이동 페이지"
}
} catch (e) {}
}
}
</스크립트>