按位非( NOT)

2017-06-14 16:22:00
admin
原创
456
<!DOCTYPE html>
<html>
	<head>
		<title>
			Bitwise NOT Example 1
		</title>
		<script type="text/javascript">
			var num1 = 25; //binary 00000000000000000000000000011001
			var num2 = ~num1; //binary 11111111111111111111111111100110
			alert(num2); //-26
		</script>
	</head>
	<body>
	</body>
</html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络