微信小程序获取当前屏幕的宽度和高度,只需一句代码
·
data: {
wdith: wx.getSystemInfoSync().windowWidth,
height: wx.getSystemInfoSync().windowHeight
},
更多推荐
data: {
wdith: wx.getSystemInfoSync().windowWidth,
height: wx.getSystemInfoSync().windowHeight
},
更多推荐
所有评论(0)