在wxs里判断用户是安卓还是苹果系统(骚操作)

发布于 5 年前作者 xiulan294265 次浏览最后编辑 5 年前来自 share

根据苹果和安卓时间格式,判断系统。

示例:

tools.wxs

var android = getDate(“2020-09-15 10:40:00”).getTime() === 1600137600000;

if(android){
console.log(“安卓”)
}else{
console.log(“苹果”)
}

0 回复
暂无回复