uTools-Manuals/docs/jQuery/deferred.progress.html
2019-04-21 11:50:48 +08:00

31 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<article class="" id="post-">
<header class="entry-header">
<h1 class="entry-title">deferred.progress()</h1>
<div class="entry-meta">
所属分类:<span class="category"><a href="/category/deferred-object/">延迟对象</a></span>
<span class="pull-right">英文文档:<a href="https://api.jquery123.com/deferred.progress/" target="_blank">deferred.progress()</a></span>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<!-- .entry-header -->
<div class="entry-content">
<article class="entry method" id="deferred-progress1"><h2 class="section-title">
<span class="name">deferred.progress( progressCallbacks )</span><span class="returns">返回: <a href="/Types/#Deferred">Deferred</a></span>
</h2>
<div class="entry-wrapper">
<p class="desc"><strong>描述: </strong> 当Deferred延迟对象生成进度通知时调用添加处理程序。</p>
<ul class="signatures"><li class="signature" id="deferred-progress-progressCallbacks">
<h4 class="name">
<span class="version-details">添加的版本: <a href="/category/version/1.7/">1.7</a></span>deferred.progress( progressCallbacks )</h4>
<ul><li>
<div><strong>progressCallbacks</strong></div>
<div>类型: <a href="/Types/#Function">Function</a>()</div>
<div>一个函数或者函数数组当Deferred延迟对象生成进度通知时被调用的一个函数。
</div>
</li></ul>
</li></ul>
<div class="longdesc" id="entry-longdesc">
<p>这个参数可以是一个单一的函数或函数数组。
当通过调用 <code>notify</code><code>notifyWith</code> 使延迟对象产生进度通知时,<code>progressCallbacks</code> 就会被调用。由于 <code>deferred.progress()</code>返回的是延迟对象,所以其它延迟对象方法可以链接到该对象上。当延迟对象被 resolved 或 rejected 时,进度回调函数将不再被调用。欲了解更多信息,请参阅文档<a href="/category/deferred-object/">Deferred object</a></p>
</div>
</div></article> </div>
</article>