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 */
在多行注释中,包含在/*
和*/
符号之间的任何字符都视被为注释文本而忽略掉。