这是前端js代码
$.ajax({
type:"POST",
url:"event.php",
data:{
"day1": Number(day1),
"mon1": Number(mon1),
"year1": Number(year1),
},
datatype: "json",
success:window.open('event.php'),
});
然后这是后端php代码
$day = $_POST["day1"];
var_dump($day);
前端调试过了传值没有问题,也会正确打开php文件,而后端无法接收,只显示day1未定义,