简体   繁体   中英

How to store json data from a POST response in a variable?

I am developing a chrome extentsion. when user loads a page in browser a POST request is sent to server and response back with json objects. I want to store that json object so that further i can add this json value in my GET request . I have found few options to store GET response but did not find out yet how to store POST response ! Can anyone help me with some links or with an example ?

You can look into chrome.storage to store data if that is what you mean:

https://developer.chrome.com/extensions/storage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM