onPageNotFound小程序
在APP() 注册小程序的函数里函数
做用: 当要打开的页面不存在时会带着页面信息执行回调函数,能够指定跳入新的页面url
APP({ onPageNotFound(res){ wx.redirectTo({ url: 'pages/...' }) } })