wx.getSystemInfoSync()//获取设备信息
wx.getSystemInfoSync().windowWidth//获取设备宽度
アプレットはデバイスの幅と高さを取得します
おすすめ
転載: blog.csdn.net/xiaokangna/article/details/124959554
おすすめ
ランキング