Ajax
English [?e?e?d??ks] US [?e?d??ks]
n. ?? ??? "Asynchronous JavaScript and XML"(??? JavaScript ? XML)???. ; Ajax ??-??-? ??? ??, Yajis ???
English [stɑ:t] US [stɑ:rt]
n.Start ???vt.& vi; .??, ??vt.??, ??vi.??? ????;ajax ajaxStart() ?? ???
Function: ajaxStart() ???? AJAX ??? ???? ?? ??? ?????. ??? ??????.
??: ??.ajaxStart(function())
??: Ajax ??? ??? ??? jQuery? ?? Ajax ??? ??? ?????. ???? ?? ?? jQuery? ajaxStart ???? ??????. ? ???? .ajaxStart() ???? ?? ??? ?? ??? ?????.
Parameters:
Parameter | Description |
function() | AJAX ??? ??? ? ??? ??? ?????. |
ajax ajaxStart() ?? ?
<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").ajaxStart(function(){ $(this).html("<img src='http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg' />"); }); $("button").click(function(){ alert("函數(shù)已執(zhí)行"); }); }); </script> </head> <body> <div id="txt"><h2>通過 AJAX 改變文本</h2></div> <button>改變內(nèi)容</button> </body> </html>
??? ????? ??? "???? ??" ??? ?????