|
@@ -63,7 +63,8 @@ const app=createApp({
|
|
|
{value: 'en', label: 'English',},
|
|
|
{value: 'ja', label: 'にほんご',},
|
|
|
],
|
|
|
- tomcat_res:""
|
|
|
+ tomcat_res:"",
|
|
|
+ books:[{"title":"Linux从入门到精通","author":"night-cherry","publisher":"peking press","pages":123}],
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -79,9 +80,10 @@ const app=createApp({
|
|
|
},
|
|
|
interface_web(){
|
|
|
console.log("---------tomcat server----------");
|
|
|
+ console.log("this.tomcat_res : "+this.tomcat_res);
|
|
|
const request = new XMLHttpRequest();
|
|
|
request.onload=function(){
|
|
|
- console.log("parse tomcat server string");
|
|
|
+ console.log("--------parse tomcat server string--------");
|
|
|
const res=JSON.parse(request.responseText);
|
|
|
|
|
|
this.tomcat_res=res[0].title;
|