map组件高度问题
|
js代码如下:
Page({ data: { windowHeight: 0, }, onLoad: function (options) { let systemInfo = wx.getSystemInfoSync(); this.setData({ windowHeight: systemInfo.windowHeight }); },}) |
iOS中展示效果如下:
地图高度为0, 请问如何解决呀
