mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-02-27 01:21:38 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/atomics-islockfree.html" width="100%"></iframe></div>
|
||||
<p class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a class="external" href="https://github.com/mdn/interactive-examples" rel="noopener">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
|
||||
<h2 id="语法">语法</h2>
|
||||
<pre class="syntaxbox">Atomics.isLockFree(size)
|
||||
</pre>
|
||||
<pre><code class="language-javascript">Atomics.isLockFree(size)
|
||||
</code></pre>
|
||||
<h3 id="参数">参数</h3>
|
||||
<dl>
|
||||
<dt><code>size</code></dt>
|
||||
@@ -16,7 +16,7 @@
|
||||
<h3 id="返回值">返回值</h3>
|
||||
<p> <a href="Reference/Boolean" title="此页面仍未被本地化, 期待您的翻译!"><code>Boolean</code></a> 是否为能够使用原子操作的<code><a href="https://developer.mozilla.orgReference/Global_Objects/TypedArray/BYTES_PER_ELEMENT" title="TypedArray.BYTES_PER_ELEMENT 属性代表了强类型数组中每个元素所占用的字节数。">TypedArray</a></code>的标准字节长度之一.</p>
|
||||
<h2 id="示例">示例</h2>
|
||||
<pre class="brush: js">Atomics.isLockFree(1); // true
|
||||
<pre><code class="language-javascript">Atomics.isLockFree(1); // true
|
||||
Atomics.isLockFree(2); // true
|
||||
Atomics.isLockFree(3); // false
|
||||
Atomics.isLockFree(4); // true
|
||||
@@ -24,7 +24,7 @@ Atomics.isLockFree(5); // false
|
||||
Atomics.isLockFree(6); // false
|
||||
Atomics.isLockFree(7); // false
|
||||
Atomics.isLockFree(8); // false
|
||||
Atomics.isLockFree(<code>Float64Array.BYTES_PER_ELEMENT</code>); // false,<code>Atomics方法无法处理Float64Array</code></pre>
|
||||
Atomics.isLockFree(<code>Float64Array.BYTES_PER_ELEMENT</code>); // false,<code>Atomics方法无法处理Float64Array</code></code></pre>
|
||||
<h2 id="Specifications">Specifications</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user