在jQuery中有使用Ajax的方法
$.ajax({
type: "method",
url: "url",
data: "data",
dataType: "dataType",
success: function (response) {
}
});
其中的各項參數的含義:
type : 表示參數類型
url : 表示發送請求的地址
data : 發送到服務器的數據
dataType : 發送的數據類型
success : 請求成功時的運行的函數