In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "JavaScript multiline comment symbol is what", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "JavaScript multiline annotation symbol is what" it!
In JavaScript, the multiline comment symbol is "/ * * /" and the syntax is "/ * comment content * /". Everything that appears between "/ *" and "* /" is treated as the content of the comment and is automatically ignored when executed.
The operating environment of this tutorial: windows7 system, javascript1.8.5 version, Dell G3 computer.
In JavaScript, the multiline comment symbol is "/ * * /"; multiline comments begin with / * and end with * /.
Syntax:
/ * comment content * /
Everything that appears between / * and * / is treated as the content of the comment, and any character contained between the / * and * / symbols is ignored as the comment text.
JavaScript / * add the specified content to the tag whose id attribute is demo * / document.getElementById ("demo") [xss_clean] = "http://c.biancheng.net/js/";"
Multiline comments generally start at the beginning of the js file, introducing the author, function and other information.
/ * * author:xxx*day:2008-08-10pm /
In addition to adding explanations or descriptions to the code, we can also comment out the code that we don't need to run when debugging the code, so that the browser ignores the code in the comments when running the program. As shown in the following example:
Document.getElementById ("demo") [xss_clean] = "JavaScript tutorial"; / / document.getElementById ("demo") [xss_clean] = "JavaScript"; / * document.getElementById ("demo") [xss_clean] = "comment"; document.getElementById ("demo") [xss_clean] = "JavaScript comment" * / Thank you for your reading, the above is the content of "what is the JavaScript multiline comment symbol". After the study of this article, I believe you have a deeper understanding of what the JavaScript multiline comment symbol is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.