JavaScript中的SharedArrayBuffer.byteLength属性
byteLength的SharedArrayBuffer的属性返回一个无符号的32位整数,指定一个SharedArrayBuffer的大小/长度。
语法
其语法如下
sharedArrayBuffer.byteLength
示例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var sharedArrayBuffer = new SharedArrayBuffer(8);
var result = sharedArrayBuffer.byteLength;
document.write("length of the shared array buffer is: " + result);
</script>
</body>
</html>输出结果
length of the shared array buffer is: 8
热门推荐
10 送礼祝福语男性生日简短
11 幼儿住院祝福语老师简短
12 给儿子祝福语简短霸气
13 鱼的内涵简短祝福语
14 项目总生日祝福语简短
15 五二零朋友祝福语大全简短
16 拜新年的祝福语简短
17 老婆生日祝福语简短孩子
18 海鲜送礼祝福语简短大全