演示代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!-- sc -->
<script type="text/javascript">
// 弹出警告框
/* alert("我要自学");
alert("我要自学"); */
alert("我要自学");
// 单行注释://开头
// 多行注释:/* 要注释的内容 */
// 部分软件注释快捷键:ctrl+/
</script>
</head>
<body>
</body>
</html>