语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -4,15 +4,15 @@
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/dataview-buffer.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"><var>dataview</var>.buffer</pre>
<pre><code class="language-javascript"><var>dataview</var>.buffer</code></pre>
<h2 id="描述">描述</h2>
<p><code>buffer</code> 属性是一个访问器(accessor)属性,它的 set 属性为 undefined这意味着它是只读的。值在 <code>DataView 被创建时就确定了,且不能改变。</code></p>
<h2 id="示例">示例</h2>
<h3 id="使用buffer属性"><code>使用buffer属性</code></h3>
<pre class="brush:js">var buffer = new ArrayBuffer(8);
<pre><code class="language-js">var buffer = new ArrayBuffer(8);
var dataview = new DataView(buffer);
dataview.buffer; // ArrayBuffer { byteLength: 8 }
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>