|
@@ -95,7 +95,7 @@ const app=createApp({
|
|
console.log("--------parse tomcat server string--------");
|
|
console.log("--------parse tomcat server string--------");
|
|
const res=JSON.parse(request.responseText);
|
|
const res=JSON.parse(request.responseText);
|
|
|
|
|
|
- _tomcat_res=res[1].title;
|
|
|
|
|
|
+ _tomcat_res=res[0].title;
|
|
console.log("res:"+res);
|
|
console.log("res:"+res);
|
|
console.log("res[0].title :"+res[0].title);
|
|
console.log("res[0].title :"+res[0].title);
|
|
console.log("res[0].author :"+res[0].author);
|
|
console.log("res[0].author :"+res[0].author);
|
|
@@ -112,7 +112,10 @@ const app=createApp({
|
|
console.log("------ _books : "+_books);
|
|
console.log("------ _books : "+_books);
|
|
// console.log("------this.books : "+this.books);
|
|
// console.log("------this.books : "+this.books);
|
|
try{
|
|
try{
|
|
- _books.concat(res);
|
|
|
|
|
|
+ for(item in res){
|
|
|
|
+ _books.push(item);
|
|
|
|
+ }
|
|
|
|
+ // _books.concat(res);
|
|
}catch(e){
|
|
}catch(e){
|
|
console.log("the way == _books.push(res[0]) is wrong!!!");
|
|
console.log("the way == _books.push(res[0]) is wrong!!!");
|
|
try{
|
|
try{
|