javascript多行注释如何实现

来自:互联网
时间:2021-04-19
阅读:

JavaScript多行注释的实现方法:

使用/**/可以定义多行注释信息。

/*
* jQuery JavaScript Library v3.3.1
* https://jquery.com/
* Includes Sizzle.js
* https://sizzlejs.com/
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
* Date: 2019-08-21 T 17:24 Z
*/

在多行注释中,包含在/**/符号之间的任何字符都视被为注释文本而忽略掉。

返回顶部
顶部