http参数是数组
请求参数可以是数组么?答案是可以。 我以前一直以为 json 的就是对象, 或者 key=value 的形式
$.ajax({
type: "POST",
url: "index.php",
dataType: "json",
data: JSON.stringify({ paramName: info }),
success: function (msg) {
$(".answer").html(msg);
},
});
https://stackoverflow.com/questions/8890524/pass-array-to-ajax-request-in-ajax
Be the first to know when I post cool stuff
Subscribe to get my latest posts by email.
Thanks for signing up! Check your email to confirm your subscription.
Whoops, we weren't able to process your signup.