Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复点击"下载音频文件"失败报错 #1

Merged
merged 1 commit into from Feb 9, 2023

Conversation

SuCicada
Copy link
Collaborator

@SuCicada SuCicada commented Feb 9, 2023

操作:

  1. 导入id文件之后。
  2. 点击“下载音频文件”按钮。

现象

  1. 音频未下载。
  2. 控制台报错:

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at download2 (index.js:374:31)
at HTMLButtonElement.onclick ((index):160:39)

错误原因:

download2函数调用时id传参为空。

解决方式:

使用全局id参数。

@SuCicada SuCicada changed the title 修复下载音频文件报错; 修复点击"下载音频文件"失败报错 Feb 9, 2023
@Ikaros-521 Ikaros-521 merged commit 7e6d379 into Ikaros-521:master Feb 9, 2023
@Ikaros-521
Copy link
Owner

干得好呀!
绷,我说昨晚 为什么一模一样的函数我写了2个,原来传参不一样......直接给我删了,后面看有调用 又复制了份。。。

@SuCicada
Copy link
Collaborator Author

SuCicada commented Feb 9, 2023

哈哈,感觉好像还有些小问题,我正在测试。

@Ikaros-521
Copy link
Owner

哈哈,感觉好像还有些小问题,我正在测试。

好活,这个小程序要给你盘活了www

@SuCicada
Copy link
Collaborator Author

SuCicada commented Feb 9, 2023

只能说赶巧了,多亏大佬提前铺路 :P

@Ikaros-521
Copy link
Owner

GXGK_YOUB~}V9_ APT9Y@9E
靠你拯救世界了www

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants