【发布时间】:2015-02-19 10:39:56
【问题描述】:
请在我的 ajax 代码方面需要帮助,我在 ajax 中发送数据时出错。 它给了我一个数据语法错误,我试图改变它很多次,但我没有成功
这是我的代码:
$.ajax({
type: "POST",
url: "customer.php",
data: {content : '"msisdn = '+mob+'"' , type : 'GetCustomer' },
dataType: "json",
success:function(data){
alert(data);
},
error: function(error) {
}
});
【问题讨论】:
-
对象中有很多引号和等号,这是您要发送的吗?
-
我想发送内容:(msisdn = 变量已存储在我的代码中)
-
和类型 = GetCustomer
标签: javascript ajax