onLoad: async function() {
await function(){
return new Promise((rs, rj) => {
var query = wx.createSelectorQuery()
query.select(’.test’).boundingClientRect()
query.exec(res=> {
wx.setStorageSync(‘a000’, res)
rs(res)
})
})
}()
console.log(wx.getStorageSync(‘a000’))
}