负数右移

2017-06-15 10:24:00
admin
原创
558
<!DOCTYPE html>
<html>
	<head>
		<title>
			Unsigned Right Shift Example 1
		</title>
		<script type="text/javascript">
			var oldValue = -64; //equal to binary 11111111111111111111111111000000
			var newValue = oldValue >>> 5; //equal to decimal 134217726
			alert(newValue); //134217726
		</script>
	</head>
	<body>
	</body>
</html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络