教程中的这个语句出错是怎么回事?
var form = Request.Form;//前端ajax通过post方式请求
显示:XML 解析错误:找不到根元素
post代码
$.ajax({
type:"POST",
url:"/shoptest",
dataType:"json",
data:{"key1":"value1","key2":"value2"},
success: function (responseData){
console.log(responseData);
},
error: function(xhr, status, error) {
console.error("AJAX Request Failed:", status, error);
}
});