In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how console.log outputs information in console window". In daily operation, I believe many people have doubts about how console.log outputs information in console window. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the question of "how console.log outputs information in console window". Next, please follow the editor to study!
Console
The console.log method is used to output information in the console window. It can accept multiple parameters and connect their results together for output.
Math attribute
E
LN10
LN2
LOG2E
LOG10E
PI
SQRT1_2
SQRT2
For the specific use of the above attributes, please refer to the ES5 standard. Method
Abs
Acos
Asin
Atan
Atan2
Ceil
Cos
Exp
Floor
Log
Max
Min
Pow
Random
Round
Sin
Sqrt
Tan
For the specific use of the above methods, please refer to the ES5 standard. JSON method
Stringify (object): converts the object object to a JSON string and returns it.
Parse (string): converts the JSON string to an object and returns the object.
Sample code:
Console.log (undefined===JSON.stringify ()); console.log (undefined===JSON.stringify (undefined)); console.log ("null" = JSON.stringify (null)); console.log ("111" = JSON.stringify (111l)); console.log ('111' = = JSON.stringify (" 111")); console.log ("true" = = JSON.stringify (true)); console.log (undefined===JSON.stringify (function () {})); console.log (undefined===JSON.parse (JSON.stringify () Console.log (undefined===JSON.parse (JSON.stringify (undefined); console.log (null===JSON.parse (JSON.stringify (null); console.log (111===JSON.parse (JSON.stringify)); console.log ("111l" = JSON.parse (JSON.stringify ("111l")); console.log (true===JSON.parse (JSON.stringify (true); console.log (undefined===JSON.parse (JSON.stringify (function () {}); Number attribute
MAX_VALUE
MIN_VALUE
NEGATIVE_INFINITY
POSITIVE_INFINITY
For the specific use of the above attributes, please refer to the ES5 standard. Global attribute
NaN
Infinity
Undefined
For the specific use of the above attributes, please refer to the ES5 standard. Method
ParseInt
ParseFloat
IsNaN
IsFinite
DecodeURI
DecodeURIComponent
EncodeURI
EncodeURIComponent
At this point, the study on "how console.log outputs information in the console window" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.