wechat-miniprogram / wechat-miniprogram/api-typings

WebviewError 有误,和小程序文档不符

Open
#352 0 comments 0 reactions 1 assignee View on GitHub

@SgLy is already working on this.

Since Jun 13, 2025.

Dominant language
TypeScript
Stars
803
Forks
117
Avg merge
24m
Merged PRs (30d)
1

Description

小程序文档 说的:

网页加载失败的时候触发此事件。e.detail = { url, fullUrl },其中 fullUrl 为加载失败时的完整 url

WebviewError 的类型是:

  /**
   * 网页加载失败的时候触发此事件。e.detail = { src }
   *
   * 最低基础库: 1.6.4
   */
  type WebviewError = CustomEvent<{
      src: string
  }>

应该是搞错了

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.