mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-16 07:51:52 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
<div></div>
|
||||
<p> <code><strong>byteLength</strong></code> 访问器属性表示以字节为单位的一个<a href="Reference/Global_Objects/SharedArrayBuffer" title="SharedArrayBuffer 对象用来表示一个通用的,固定长度的原始二进制数据缓冲区,类似于 ArrayBuffer 对象,它们都可以用来在共享内存(shared memory)上创建视图。与 ArrayBuffer 不同的是,SharedArrayBuffer 不能被分离。"><code>SharedArrayBuffer</code></a>的长度。</p>
|
||||
<h2 id="Syntax">Syntax</h2>
|
||||
<pre class="syntaxbox"><var>sab</var>.byteLength</pre>
|
||||
<pre><code class="language-javascript"><var>sab</var>.byteLength</code></pre>
|
||||
<h2 id="Description">Description</h2>
|
||||
<p>The <code>byteLength</code> property is an accessor property whose set accessor function is <code>undefined</code>, meaning that you can only read this property. The value is established when the shared array is constructed and cannot be changed.</p>
|
||||
<h2 id="Examples">Examples</h2>
|
||||
<pre class="brush:js">var sab = new SharedArrayBuffer(1024);
|
||||
<pre><code class="language-js">var sab = new SharedArrayBuffer(1024);
|
||||
sab.byteLength; // 1024
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="Specifications">Specifications</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user