加载中...

逻辑运算符


调试运行

<html>
<head>
<title>逻辑运算符</title>
</head>
<body>
<script language="javascript">
<!--
	a = true;
	b = false;
	c = false;
	document.write('a = ',a,',b = ',b,',c = ',c,'<br>');
	document.write('a && b = ',a&&b,'<br>');
	document.write('a || b = ',a||b,'<br>');
	document.write('!c = ',!c,'<br>');
//-->
</script>
</body>
</html>

还没有评论.