1.在html页面head里写好title。2.放入脚本代码。<script> wx.miniProgram.postMessage({data:{title:'title'} });</script>