问题
how do I send some data to the server in the .load() function of jquery. I tried this syntax:
$('container').load('path', {key: value});
but for some reason it doesn't work
回答1:
.load uses POST or GET depending on the parameter passed.
If it's an object, it uses POST:
$('container').load('path', {key: value});
Otherwise, it uses GET:
$('container').load('path', 'key=value');
Without any other info in your question, this is all I could come up with to help.
来源:https://stackoverflow.com/questions/9218677/send-data-with-jquery-load