使用navigator組件來做關閉按鈕,target要定義為miniProgram,open-type為exit,一點擊就會退出小程序 <navigator target="miniProgram" open-type="exit" >退出小程序</navigator>
感謝 各位老板 小額打賞: (有問題call俺)
更多鏈接:https://segmentfault.com/q/1010000015920084/a-1020000017085061