onPageNotFound小程序
在APP() 註冊小程序的函數裏函數
做用: 當要打開的頁面不存在時會帶着頁面信息執行回調函數,能夠指定跳入新的頁面url
APP({ onPageNotFound(res){ wx.redirectTo({ url: 'pages/...' }) } })