In JavaScript, the multi-line comment symbol is "/* */", and the syntax is "/* comment content */". All content appearing between "/*" and "*/" will Content regarded as comments will be automatically ignored during execution.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
In JavaScript, the multi-line comment symbol is "/* */
"; multi-line comments start with /*
and end with */
end.
Syntax:
/* 注释内容 */
Any content appearing between /*
and */
will be regarded as the content of the comment and is included in # Any characters between the ##/* and
*/ symbols are treated as comment text and ignored.
<!DOCTYPE html> <html> <head> <title>JavaScript</title> </head> <body> <div id="demo"></div> <script> /* 在 id 属性为 demo 的标签中 添加指定内容 */ document.getElementById("demo").innerHTML = "http://c.biancheng.net/js/"; </script> </body> </html>
/* *author:xxx *day:2008-08-10 */
<script> document.getElementById("demo").innerHTML = "JavaScript教程"; // document.getElementById("demo").innerHTML = "JavaScript"; /* document.getElementById("demo").innerHTML = "注释"; document.getElementById("demo").innerHTML = "JavaScript注释"; */ </script>
javascript advanced tutorial]
The above is the detailed content of What is the JavaScript multiline comment symbol?. For more information, please follow other related articles on the PHP Chinese website!