javascript判断当前是安卓平台还是ios平台

2015-06-08 0 250
javascript判断当前是安卓平台还是ios平台
if (/android/i.test(navigator.userAgent)){
    // todo : android
}

if (/ipad|iphone|mac/i.test(navigator.userAgent)){
    // todo : ios
}

遇见资源网 html javascript判断当前是安卓平台还是ios平台 http://www.ox520.com/14228.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务