日期:2014-05-17 浏览次数:20714 次
var data = {
"data":["apple","banana","cap","dog"],
"desc":"fruits"
};
$(document).ready(function(){
$("#button").click(function(){
$.post("http://localhost/xxxx/xxx",data,function(d){});
});
});
String desc = request.getParameter("desc"); //可以获取到参数
String data = request.getParameter("data"); //无法获取到参数
data[] : apple
data[] : banana
data[] : cap
data[] : dog
String[] data = request.getParameterValues("data");