wx.miniProgram.postMessage传动态参数不可以?
let data = '111' let btn = document.getElementById('btn') btn.onclick = function(){ console.log(data,'data1'); data = 'ceshi' console.log(data,'data'); } wx.miniProgram.navigateBack({delta: 1}) wx.miniProgram.postMessage({ data: data }) 小程序页面拿到的只是111