问题
How can you see what the attribute rel
contains when it is transferred by POST?
I transfer a variable by the rel attribute by jQuery. I would like to know what the attribute, $_POST['answer'], contains.
This question is based on: To make an action based on the link location by jQuery
jQuery IRC tells me that the solution seems to be Firebug somehow. How can you see POST data in Firebug?
回答1:
You can use the Network tab and look at the params tab as shown below (this was a get request to google where I search for the word hello).
(source: gyazo.com)
回答2:
There are various tools you can use to capture such information. I use a plugin for Firefox called Live HTTP Headers, which lets you view the HTTP headers that are being transferred in each request, so you would be able to view your post variable.
Firebug can also be used, it is also a plugin available for Firefox. Select the Net tab, then select All. Here you will see a list of all requests. Now you can expand each request to view the headers (and hence the post variables).
来源:https://stackoverflow.com/questions/1350779/to-see-the-content-post-data-trasferred-by-jquery