tax !== underfined
underfined 是判断的是类型的结果,

如果加typeof后是字符串类型

写法:
typeof(tax) !== "underfined";

 

相关文章: