Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- import
- maVen
- web.xml
- VirtualBox
- 네트워크
- JavaScript
- find
- context
- Mac
- IntelliJ
- Source
- Eclipse
- lsof
- 줄바꿈 문자
- profile
- GIT
- vscode
- Quartz
- resource
- grep
- plugin
- bash
- netsh
- tomcat
- port
- Windows
- Windows 10
- ssh
- 단축키
- xargs
Archives
- Today
- Total
develog
[jquery] ajax 본문
let url = '/api/members';
let data = {
memberName: 'memberA'
};
let headers = {
'Authorization': 'Bearer token',
'Content-Type': 'application/json',
}
$.ajax({
url: url,
method: 'post',
headers: headers,
data: data,
dataType: 'json',
async: true,
traditional: true,
beforeSend: function(xhr) {
},
success: function(data, textStatus, jqXHR) {
},
error: function(jqXHR, textStatus, errorThrown) {
},
complete: function(jqXHR, textStatus) {
}
});
https://api.jquery.com/jQuery.ajax/
jQuery.ajax() | jQuery API Documentation
Description: Perform an asynchronous HTTP (Ajax) request. The $.ajax() function underlies all Ajax requests sent by jQuery. It is often unnecessary to directly call this function, as several higher-level alternatives like $.get() and .load() are available
api.jquery.com
Comments