
使用位右移操作符,将位从左边移动。最右边的位不被考虑。
示例
您可以尝试运行以下代码,了解如何使用JavaScript位右移操作符。
<!DOCTYPE html>
<html>
<body>
<script>
document.write("Bitwise Right Shift Operator<br>");
document.write(-7>>1);
</script>
</body>
</html>");docu" /> ");docu" />
热词: