forked from pandoraui/jquery-chm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deferred.done.html
52 lines (51 loc) · 3.09 KB
/
deferred.done.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>deferred.done(doneCallbacks[,doneCallbacks]) | jQuery API 涓枃鎵嬪唽</title>
<meta name="author" content="jQuery 涓枃鎵嬪唽 - hemin.cn/jq/">
<meta name="description" content="jQuery涓枃鎵嬪唽(鍦ㄧ嚎鐗�),浣滆��:hemin,鍦ㄧ嚎鎵嬪唽:hemin.cn/jq/,涓嬭浇:hemin.cn/jq/downloads/">
<link type="text/css" rel="stylesheet" href="style/style.css" tppabs="http://hemin.cn/jq/style/style.css" />
<script type="text/javascript" src="js/jquery.min.js" tppabs="http://hemin.cn/jq/js/jquery.min.js"></script>
<script type="text/javascript" src="js/js.js" tppabs="http://hemin.cn/jq/js/js.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-15318881-10', 'pandoraui.github.io');
ga('send', 'pageview');
</script>
</head>
<body id="split">
<div id="content" class="a2">
<div rel="deferred.done">
<h2><span>杩斿洖鍊�:Deferred Object</span>deferred.done(doneCallbacks[,doneCallbacks])</h2>
<h3>姒傝堪</h3>
<div class="desc">
<p>褰撳欢杩熸垚鍔熸椂璋冪敤涓�涓嚱鏁版垨鑰呮暟缁勫嚱鏁�.</p>
<div class="longdesc">
<p>璇ュ弬鏁板彲浠ユ槸涓�涓嚱鏁版垨涓�涓嚱鏁扮殑鏁扮粍銆傚綋寤惰繜鎴愬姛鏃讹紝doneCallbacks琚皟鐢ㄣ�傚洖璋冩墽琛屾槸渚濈収浠栦滑娣诲姞鐨勯『搴忋�備竴鏃eferred.done()杩斿洖寤惰繜瀵硅薄锛屽欢杩熷璞$殑鍏跺畠鏂规硶涔熷彲浠ラ摼鎺ュ埌浜嗚繖閲岋紝鍖呮嫭澧炲姞.done()鏂规硶銆傚綋寤惰繜瑙e喅锛宒oneCallbacks鎵ц浣跨敤鍙傛暟鎻愪緵缁�<a href="deferred.reject.html" tppabs="http://hemin.cn/jq/deferred.reject.html">resolve</a>鎴�<a href="deferred.rejectWith.html" tppabs="http://hemin.cn/jq/deferred.rejectWith.html">resolveWith</a>鏂规硶渚濈収娣诲姞鐨勯『搴忚皟鐢ㄣ�傛湁鍏宠缁嗕俊鎭紝璇峰弬闃�<a href="javascript:if(confirm('http://api.jquery.com/category/deferred-object/ \n\n文件并未依 Teleport Pro 取回,因为 它的域或路径超过开始网址中设置的范围。 \n\n你要从服务器上打开它吗?'))window.location='http://api.jquery.com/category/deferred-object/'" tppabs="http://api.jquery.com/category/deferred-object/">Deferred object</a> 銆�</p>
</div>
</div>
<h3>鍙傛暟</h3>
<div class="parameter">
<h4><strong>doneCallbacks</strong><span>Function/Array</span><em>V1.5</em></h4>
<p>涓�涓嚱鏁版垨鑰呮暟缁勫嚱鏁帮紝寤惰繜鎴愬姛鏃惰皟鐢�</p>
<h4><strong>doneCallbacks</strong><span>Function/Array</span><em>V1.5</em></h4>
<p>闄勫姞鍙�夌殑鍑芥暟鎴栨暟缁勫嚱鏁帮紝寤惰繜鎴愬姛鏃惰皟鐢�</p>
</div>
<div class="example">
<h3>绀轰緥</h3>
<span id="f_ad2"></span>
<h4>鎻忚堪:</h4>
<p>涓�鏃Query.get鏂规硶杩斿洖涓�涓潵鑷欢杩熺殑瀵硅薄鐨刯qXHR瀵硅薄锛屾垜浠彲浠ラ檮鍔犱竴涓垚鍔熷洖璋冧娇鐢�.done鏂规硶銆�</p>
<h5>jQuery 浠g爜:</h5>
<pre><code>$.get("test.php").done(function() {
alert("$.get succeeded");
});</code></pre>
</div>
</div>
</div>
</body>
</html>