$http({
method: "POST",
url: 'http://192.168.3.140:8081/SamplengcordovaApp/Savedata.php',
data: resdata,
dataType: "json"
})
.success(function (data, status, headers, config) {
debugger;
alert(data);
})
.error(function (data, status, headers, config) {
alert(status);
});
获得成功,但没有保存在database.please提供我支持的代码。XMLHttpRequest无法加载。原产地http:// localhost:63342是不允许的访问控制 - 允许来源
然后检查服务器端是否收到数据? –
在服务器端保存数据在客户端不保存 – mounika