js 判断mobile

来源:互联网 发布:淘宝评论图片福利2000 编辑:程序博客网 时间:2024/05/16 23:59

js 判断mobile

<script>if((navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i))){console.info(navigator.userAgent);alert('mobile');}</script>


0 0
原创粉丝点击