Skip to content

我在别的微信小程序中使用systemInfo.height一直取不到 #18

@akikiSun

Description

@akikiSun

wx.createSelectorQuery().selectAll(.${this.data.selector}).boundingClientRect().exec(function(res){
that.setData({
'systemInfo.height': res[0][0].height + res[0][0].top
})
});

res传出的array为0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions