|
@@ -90,7 +90,7 @@ const app=createApp({
|
|
|
const books=this.books;
|
|
|
// console.log("------this : "+this);
|
|
|
const request = new XMLHttpRequest();
|
|
|
- request.onload=function(books){
|
|
|
+ request.onload=function(this){
|
|
|
console.log("--------parse tomcat server string--------");
|
|
|
const res=JSON.parse(request.responseText);
|
|
|
|
|
@@ -102,12 +102,16 @@ const app=createApp({
|
|
|
console.log("res[0].pages :"+res[0].pages);
|
|
|
console.log("res[1][\"title\"] :"+res[1]["title"]);
|
|
|
console.log("res[1][\"author\"] :"+res[1]["author"]);
|
|
|
+ console.log("res[1].publisher :"+res[1].publisher);
|
|
|
+ console.log("res[1].pages :"+res[1].pages);
|
|
|
console.log("this.tomcat_res : "+this.tomcat_res);
|
|
|
alert("this.tomcat_res : "+this.tomcat_res);
|
|
|
|
|
|
- console.log("------books : "+books);
|
|
|
- books.add(res[0]);
|
|
|
- console.log("------books : "+books);
|
|
|
+ // console.log("------books : "+books);
|
|
|
+ console.log("------this.books : "+this.books);
|
|
|
+ // books.add(res[0]);
|
|
|
+
|
|
|
+ // console.log("------books : "+books);
|
|
|
// console.log("------this : "+this);
|
|
|
console.log("this.tomcat_res : "+this.tomcat_res);
|
|
|
};
|