소스 검색

xmlHttpRequest

night-cherry 1 개월 전
부모
커밋
a3110d2b3a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      index.js

+ 3 - 1
index.js

@@ -85,13 +85,15 @@ const app=createApp({
     locale.value=type;
   },
   interface_web(){
+    console.log("---------tomcat server----------");
     const request = new XMLHttpRequest();
     request.onload=function(){
+      console.log("parse tomcat server string");
       const res=JSON.parse(request.responseText);
       console.log("res:"+res);
     };
     request.open("POST","http://ancientapes.cc:8080/mineluxuries/book");
-    
+    request.send("test tomcat");
   }
 
   },