不需要判空的,只有原始 string,number这类型。 - 带 【?】号的 - 带【 | undefind 】交叉类型的 - 非原始类型,例如 Array [],Map,对象 {}, 等 上面全部都是要判空的。