--- title: OfflineAudoContext.length slug: Web/API/OfflineAudioContext/length translation_of: Web/API/OfflineAudioContext/length --- <p>{{SeeCompatTable}}{{ APIRef("Web Audio API") }}</p> <p>{{domxref("OfflineAudioContext")}} 接口的 <strong><code>length</code></strong> 属性返回一个代表采样帧的缓冲区大小的整数。</p> <h2 id="语法">语法</h2> <pre class="syntaxbox">var length = OfflineAudioContext.length;</pre> <h3 id="值">值</h3> <p>一个代表采样帧的缓冲区大小的整数。</p> <h2 id="标准">标准</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> <tr> <td>{{SpecName('Web Audio API','#widl-OfflineAudioContext-length','length')}}</td> <td>{{Spec2('Web Audio API')}}</td> <td>Initial definition.</td> </tr> </tbody> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> {{Compat("api.OfflineAudioContext.length")}}