文章列表typescript类型判断On this page类型判断typeof基础使用:if (typeof target == 'string')switch(target){ case typeof target == 'string': case typeof target == 'string':}instanceof基础使用:if (target instanceof File)switch(target){ case target instanceof File:}