프리랜서 웹디자이너 웹퍼블리셔RELATION

RELATION 로고

홈페이지 소스

[소스] fetch json

2025.05.09
북마크 작성자 정보
fetch $_POST 방식 (텍스트 처리)  
fetch("modal_img.php", {
						method: "POST",
						headers: {
							"Content-Type": "application/json",
						},
						body: JSON.stringify({  // param
							title: "Test",
							body: "I am testing!",
							userId: 1,
						}),
					})
					.then((response) => console.log(response));



 

이 포스트 공유하기

전체목록