微信小程序获取可视窗口的宽高

话不多说直接上代码

var w = wx.getSystemInfoSync().windowWidth;
var h = wx.getSystemInfoSync().windowHeight;

猜你喜欢

转载自blog.csdn.net/qq_42363090/article/details/90033864