In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how js uses typeof. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Typeof
Operator returns a string representing the type of uncalculated Operand, which is reliable in most cases, but of course there are exceptions
Regular expression
Typeof / s / = = 'function'; / / Chrome 1-12, does not conform to ECMAScript 5.1typeof / s / = =' object'; / / Firefox 5 +, complies with ECMAScript 5.1
NULL
Typeof null = = 'object'; / / JavaScript has been like this since the beginning
In the original implementation of JavaScript, the value in JavaScript was represented by a label representing the type and the actual data value. The type label of the object is 0. Because null represents a null pointer (the value is 0x00 on most platforms), the type tag of null also becomes 0Magnetypeof null and returns object incorrectly.
This is the end of the article on "how js uses typeof". I hope the above content can be helpful to you so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.