getSystemInfo怎么判断iphone xs?
发布于 6 年前 作者 yangong 3796 次浏览 来自 问答

现在能判断iphone xs吗?

屌丝没有xs,不知道怎么判断?求指点。

1 回复

用wx.getSystemInfo,然后用indeOf看一下型号是否是XS?没有XS没试过,按照之前X的逻辑来的

res.model.indexOf(‘iPhone XS’) == -1

回到顶部