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

JavaScript中的ReferenceError和TypeError两种错误的区别 #105

Open
smileyby opened this issue Jun 15, 2021 · 0 comments
Open

JavaScript中的ReferenceError和TypeError两种错误的区别 #105

smileyby opened this issue Jun 15, 2021 · 0 comments
Labels

Comments

@smileyby
Copy link
Owner

smileyby commented Jun 15, 2021

TypeError:标识值的类型非预期类型时发生的错误
ReferError:当一个不存在的变量被引用时发生的错误

example

参考:

  1. https://stackoverflow.com/questions/12589391/difference-typeerror-and-referenceerrorr
  2. https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/TypeError
  3. https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError
@smileyby smileyby added the JavaScript ☀️ JavaScript label Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant