Skip to content

Instantly share code, notes, and snippets.

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