0
我必须发送整数数组和字符串值与PHP的Ajax。 如何做到这一点,以及如何获得这些值在PHP端?ajax后整数数组和字符串
// values to be send
var nums = [1,2,3,4];
var method = "delete";
$.ajax({
url: "ajaxcalls.php",
type: "GET",
dataType: "json",
data: ???,
contentType: 'application/json; charset=utf-8',
});
// ajaxcalls.php
<?php
???
?>