typeScript typeof 操作符

js 表达式中的 typeof 用来返回一个变量的基本数据类型如 string、number、function、object 12345678910typeof 1; // numbertypeof true; // booleantypeof 'hello world'; // stringtypeof function () {}; // func...

发布于 TS