只需一步,快速开始
一:实现图片高度自适应 1. swiper轮播海报通过wx.getSystemInfo接口获取屏幕高度,高度依据图片宽高等比缩放 运行于app.js,全局保存 // 设备信息wx.getSystemInfo({ success: function(res) { that.scre
运行于app.js,全局保存
// 设备信息 wx.getSystemInfo({ success: function(res) { that.screenWidth = res.windowWidth; } });
首页
分类
索引
我的