[小程序文档](https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html) 说的: > 网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url [`WebviewError`](https://github.com/wechat-miniprogram/api-typings/blob/8a4dc47a5226dd1a6f2632aa542b7b926afd3c93/types/wx/lib.wx.event.d.ts#L1433) 的类型是: ```ts /** * 网页加载失败的时候触发此事件。e.detail = { src } * * 最低基础库: 1.6.4 */ type WebviewError = CustomEvent<{ src: string }> ``` 应该是搞错了