Home > front end >  On the client, please use js, how to obtain the response of the json data, revised and sent to the b
On the client, please use js, how to obtain the response of the json data, revised and sent to the b

Time:03-23

With the request of the browser to send a friend contacts for instance
The server returns a json
 {data: [{" name ":" zhang ", "gender" : "male"}, {" name ":" bill ", "gender" : "f"}]} 
I want to change the "bill" to "two pock-marked", again returned to the browser, is equivalent to not allow the user to see the name of li si, want how to do?

CodePudding user response:

Direct operation data, modify, or delete the data can be ah

CodePudding user response:

Find some clues, it seems that hook procedure called JS

CodePudding user response:

May be before you: browser sends the address book of request - & gt; Return a valid data - & gt; Binding present
Now add a little more steps: browser sends the address book of request - & gt; Return a valid data - & gt; According to your business needs change data - & gt; Binding present

Don't hook, this is a simple callback,

You ask the question, is probably said so, specific business code and not on...
  • Related