JS学习笔记 之 typeof

type of -> 可以返回 number string boolean object undefined function --> 返回的结果是作为字符串返回,即'number' ...
null 本身是原始值,但是原来作为空对象占位用,type of返回object
 
parseInt(demo, radix)     -> 以radix为进制基底,将demo转换为十进制
                                         ->从数字位开始,到非数字位截止,返回前面的数字
 
typeof(a)     --> undefined 只有这种情况下使用未定义的a不报错
 
原文地址:https://www.cnblogs.com/seveinn/p/11801685.html