Home Ads

[AJAX] ajax기본

$.ajax({
url: 'product_list_append.php', //url주소
dataType: 'html', //타입:html or json
type: 'GET', //호출 타입 :GET,POST..
data:{
code : "<?=$code?>",
s_code : "<?=$_GET['s_code']?>",
page : page
}, //보내고자 하는 데이터. 이건 개발자와 상의해야함
beforesend : function(){
$('.roading').show();
}, //보내기전
success: function(html) {
$('#appendProduct').append(html);


}
});
[AJAX] ajax기본 [AJAX] ajax기본 Reviewed by 코알라 on 9월 20, 2018 Rating: 5

댓글 없음:

페이지

Powered by Blogger.