function GetUsername(){$.ajax( {type : "get",url : "query.jsp?action=get_user_name",dataType : "json",success : function(data) {showUsername(data);},error : function(XMLHttpRequest, textStatus, errorThrown) {alert("獲取用戶名出現錯誤:"+errorThrown);}});}這個函數中的$.ajax是什么內容?我想去找一下教程但是都不知道應該搜什么才找的到這個函數,求幫忙~
JavaScript中的$.ajax函數?
繁星coding
2021-02-09 10:06:10