我想用ajax发送数据,但我得到一个语法错误,我不明白为什么... 我读了一些相同的问题,但我仍然不明白我的错在哪里...语法错误:简单的ajax请求
$.ajax({
type: "POST",
url: "imprime_planning",
data: {
"test": "test"
},
dataType: "JSON",
success: function(msg){
alert(msg);
console.log(msg);
},
error: function(res, status, exeption) {
alert(res);
console.log(exeption);
}
});
感谢您的专家眼睛!
编辑: 了“的SyntaxError”在误差函数的异常中给定
你在哪里得到语法错误?哪一行号码 – DaveHogan
而且在代码中看不到任何语法错误。 –
什么是语法错误...发布那些错误... – Hariharan