|
@@ -78,7 +78,7 @@ const app=createApp({
|
|
|
{title:"MySQL必知必会",author:"李晓兵",publisher:"peking press",pages:456},
|
|
|
],
|
|
|
users:[
|
|
|
- {username:"Linux从入门到精通",nickname:"night-cherry",password:"peking press",descrption:"123"},
|
|
|
+ {username:"night-cherry",nickname:"peking press",password:"press",descrption:"123"},
|
|
|
],
|
|
|
|
|
|
}
|
|
@@ -160,14 +160,14 @@ const app=createApp({
|
|
|
console.log("--------parse tomcat server string--------");
|
|
|
const res=JSON.parse(request.responseText);
|
|
|
|
|
|
- _tomcat_res=res[0].usename;
|
|
|
+ _tomcat_res=res[0].username;
|
|
|
console.log("res:"+res);
|
|
|
- console.log("res[0].usename :"+res[0].usename);
|
|
|
+ console.log("res[0].usename :"+res[0].username);
|
|
|
console.log("res[0].nickname :"+res[0].nickname);
|
|
|
console.log("res[0].password :"+res[0].password);
|
|
|
console.log("res[0].description :"+res[0].description);
|
|
|
console.log("res[1]:"+res[1]);
|
|
|
- console.log("res[1][\"usename\"] :"+res[1]["usename"]);
|
|
|
+ console.log("res[1][\"usename\"] :"+res[1]["username"]);
|
|
|
console.log("res[1][\"nickname\"] :"+res[1]["nickname"]);
|
|
|
console.log("res[1].password :"+res[1].password);
|
|
|
console.log("res[1].description :"+res[1].description);
|