1. 首先可以先看一下官方文档 2.只需要下面一行代码 <navigator hover-class="none" target="miniProgram" open-type="exit" class="nav"> 退出小程序</navigator>