怎么用js 判断当前手机的系统是ios还是android

<!-- 有大佬知道相关的写法嘛

cc.sys.platform == cc.sys.ANDROID
cc.sys.platform == cc.sys.IPHONE

1赞

好哒,我试下