我正在尝试将在 js 中创建的数组发布到 php 页面
var newEventArray = new Array();
newEventArray["title"] = title;
newEventArray["description"] = description;
newEventArray["type"] = type;
newEventArray["visibility"] = visibility;
newEventArray["priority"] = priority;
newEventArray["start"] = start;
newEventArray["end"] = end;
newEventArray["allDay"] = allDay;
$.ajax({
type: "POST",
url: "includes/processor.php",
data: {request: 'createevent',
requestarray: newEventArray},
dataType: "json",
success: function(data) {
},
error: function(data) {
}
});
但我无法在 php 端获取数组。使用萤火虫检查时数组不显示