Files
dg-js-workspace/packages/ui-react/note/undefind 判空不要忘.md
T
2026-11-21 22:57:24 +08:00

7 lines
217 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
不需要判空的,只有原始 string,number这类型。
- 带 【?】号的
- 带【 | undefind 】交叉类型的
- 非原始类型,例如 Array [],Map,对象 {}, 等
上面全部都是要判空的。