JAVASCRIPT注释


prtyaa
prtyaa 2023-12-26 18:18:09 63787
分类专栏: 资讯

1 js注释

1.1 单行注释

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="id=edge">
    <title>Document</title>
    <!-- 内嵌式js -->
    <script>
        //1.单行注释(vscode中快捷键ctrl+/)
    </script>
</head>
<body>
</body>
</html>

1.2 多行注释

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="id=edge">
    <title>Document</title>
    <!-- 内嵌式js -->
    <script>
    /*
      2.多行注释(vscode中快捷键 shift+alt+a)
    */
    </script>
</head>
<body>
</body>
</html>

网站声明:如果转载,请联系本站管理员。否则一切后果自行承担。

本文链接:https://www.xckfsq.com/news/show.html?id=30988
赞同 0
评论 0 条