JavaScript支持C语言风格的注释:/*…*/
 

<!DOCTYPE html>
<html>
<head>

<script type="text/javascript">

	
	function processClick()
	{
		/*alert("a");*/
		alert("b");
	}

</script>

</head>
	
<body>

<div style="width:1920px;min-height:1080px" >
	<a href="#" onClick="processClick();">show</a>
</div>

</body>
</html>

 

JavaScript也支持C++语言风格的注释://…
 

<!DOCTYPE html>
<html>
<head>

<script type="text/javascript">

	
	function processClick()
	{
		//alert("a");
		alert("b");
	}

</script>

</head>
	
<body>

<div style="width:1920px;min-height:1080px" >
	<a href="#" onClick="processClick();">show</a>
</div>

</body>
</html>