728x90
function search() {
$.ajax({
type: "GET",
url: "/api/events/"+'[[ ${id} ]]',
// data: JSON.stringify({}),
contentType: "application/json; charset=utf-8",
dataType: "json"
}).done(function (res) {
//alert("리비전이 완료되었습니다.");
//alert(res);
console.log("res22.title", res.title);
search_var = res.title;
/*location.href = "/list";*/
}).fail(function (err) {
console.log(JSON.stringify(err));
});
return search_var;
};
'개발 > javascript & jquery' 카테고리의 다른 글
console.log 디버깅 잘하는법 (0) | 2022.08.22 |
---|---|
팝업창 중앙 정렬 하는법 (0) | 2022.08.16 |
Drag & drop (0) | 2022.08.16 |
jqury add html (0) | 2022.06.29 |
Jquery ajax 쉽게 사용 (0) | 2022.06.29 |