Browse Source

test this point

night-cherry 1 tháng trước cách đây
mục cha
commit
b3efafc1b4
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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");