詳解ECMAScript typeof用法

typeof 返回變量的類型字符串值 、其中包括 「object」、「number」、「string」、「undefined」、「boolean」、 1、在變量只聲明、卻不初始化值 Or 在變量沒有聲明時 返回 「undefined」 > var b undefined > typeof(b) 'undefined' > typeof e 'undefined' > 前端全棧學習交流圈:86610
相關文章
相關標籤/搜索