I'm wondering how to pass JSON to a page when 1) being rendered for the first time or 2) after a redirect.
Let's say I have page1 and page2. page1 makes a POST to a webservice. That webservice then redirects to page2, but with a JSON response. I can't think of a way for page2 to take that JSON as a parameter and use it. JQuery ajax (with JSON or JSONP) all work on the premise that it's page2 making the call.
Is there a way of doing this (I've definitely dug through the similar answers [here] and [elsewhere])? Should I be shoving that data in the Headers ?
以上就是Howto pass JSON to page2 after redirect from page1的详细内容，更多请关注web前端其它相关文章！