Home > front end >  Could you tell me how to get JQ
Could you tell me how to get JQ

Time:11-16

{
"Code" : 200,
"MSG", "success",
"Newslist" : [
{
Titles "content" : "Admin",
Display name "source" : "User"
}
]
}



Could you tell me how to get the "content" and "source"

JSON Ajax can


Thank you all for the great god answer, thank you very much,

CodePudding user response:

Var res={
"Code" : 200,
"MSG", "success",
"Newslist" : [
{
Titles "content" : "Admin",
Display name "source" : "User"
}
]
};
Var content=res. Newlist [0]. The content;
Var source=res. Newlist [0]. The source;
  •  Tags:  
  • Ajax
  • Related