Bläddra i källkod

test this point

night-cherry 1 månad sedan
förälder
incheckning
b3efafc1b4
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      index.js

+ 3 - 1
index.js

@@ -86,6 +86,7 @@ const app=createApp({
     interface_web(){
       console.log("---------tomcat server----------");
       console.log("this.tomcat_res : "+this.tomcat_res);
+      console.log("------this : "+this);
       const request = new XMLHttpRequest();
       request.onload=function(){
         console.log("--------parse tomcat server string--------");
@@ -101,7 +102,8 @@ const app=createApp({
         console.log("res[1][\"author\"] :"+res[1]["author"]);
         console.log("this.tomcat_res : "+this.tomcat_res);
         alert("this.tomcat_res : "+this.tomcat_res);
-        console.log("tomcat_res : "+tomcat_res);
+        console.log("------this : "+this);
+        console.log("this.tomcat_res : "+this.tomcat_res);
       };
       request.open("POST","http://ancientapes.cc:8080/mineluxuries/book");
       request.send("test tomcat");