Ajax

English [?e?e?d??ks] US [?e?d??ks]

n. ?? ??? "Asynchronous JavaScript and XML"(??? JavaScript ? XML)???. ;Ajax ??-??-? ??? ??, Yajis ???

English [st?p] US [stɑ:p]

vi. ??; ??; ?? ??

n.(???) ??? ??;

??? ajaxStop() ??? ???

??: ajaxStop() ???? AJAX ??? ??? ??? ?????. ??? ??????.

??: ??.ajaxStop(function())

??: Ajax ??? ?????? jQuery? ?? Ajax ??? ??? ?????. ???? ??? jQuery? ajaxStop ???? ??????. ? ???? .ajaxStop() ???? ??? ?? ??? ?????.

Parameters:

Parameter Description
function()AJAX ??? ??? ? ??? ??? ?????.

??? ajaxStop() ??? ?

<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("div").ajaxStop(function(){
    alert("所有 AJAX 請求已完成");
  });
  $("button").click(function(){
  $("h2").text("改變文本成功");
  });
});
</script>
</head>

<body>

<div id="txt"><h2>通過 AJAX 改變文本</h2></div>
<button>改變內(nèi)容</button>

</body>
</html>
???? ?? ?

??? ????? ??? "???? ??" ??? ?????