XE

xe api모듈 구글크롬 콘솔 및 jquery를 이용하여 json 포맷 테스트

by 오토소장 posted May 04, 2018
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄

1. api 모듈 제작

 

2. 크롬 개발자도구의 콘솔로 json 데이터 테스트

 

 - jquery를 사용할 수 있도록 환경구성

1
2
3
4
5
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type.
jQuery.noConflict();
cs

 

 

- jquery json 테스트

1
2
3
4
5
6
7
8
9
10
$.ajax({
     type: "POST",
     contentType: "application/json; charset=utf-8",
     url: "http://localhost:8080/xe/",
     data: {module:"say_hello", act:"hello"},
     dataType: "json",
     success:function(msg) {
         console.log(msg);
     }
 });
cs

 

 

3. 결과 확인

 

1.png

 

참고 사이트 : http://wannabewize.tistory.com/89

Who's 오토소장

profile

유튜브 (https://www.youtube.com/@taskautolab)

아카데미 (https://taskautolab.com)

커뮤니티 (https://autolabs.co.kr/)

 

 

 

 

 


Articles

1 2