摘要: typeof可以检测数据的类型 typeof返回结果的其实是字符串:可以通过以下测试出来 typeof返回的数据类型有6种: 1.number 数字类型的操作数typeof(123); 2.string 字符串类型的操作数typeof('123'); 3.boolean 布尔值如:typeof(tr 阅读全文
posted @ 2018-08-07 22:39 StupidTom 阅读(1421) 评论(0) 推荐(0) 编辑