MOBILE

By 肖奈
2016-05-09
2008 read
//判断是否为手机
<script type="text/javascript">
var mobileUrl="http://m.heanny.top",
mobile = (/mmp|symbian|smartphone|midp|wap|phone|xoom|iphone|ipad|ipod|android|blackberry|mini|windowssce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {
window.location = mobileUrl;
}
</script>


INPUT
JAVA

Comments

暂无评论,还不快来坐沙发...

Leave a Reply