Skip to content

Instantly share code, notes, and snippets.

@springcome
Last active December 26, 2015 07:39
Embed
What would you like to do?
ajax 동기, 비동기 처리
// 전화번호를 검색하여 받아온다.
var telNo = '';
$.ajax({
url : '',
data : {},
type : 'post',
sendDataType : 'json',
success : function(data) {
telNo = data;
}
});
// 전화번호를 넣어준다.
$('#telNo').val(telNo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment