var query = wx.createSelectorQuery(); query.select('#xxx').boundingClientRect() query.exec(function (res) { //res就是 所有标签为mjltest的元素的信息 的数组 console.log(res); })