我的代码是这样的
$http.post("../services/myurl.aspx?Param=" + finaldata, '', { 'Content-type': 'text' })
.success(function (pricedata) {
alert (success)
})
.error(function() {
alert('we have failed to make a connection with the server. Please try after some time');
});
当我做这个呼叫成功,也没有错误既不happens.But服务被调用。我有点困惑。任何人都可以指出我做错了什么?
你有什么错误?请检查浏览器控制台错误? – 2014-10-20 07:44:14
你可能想在'alert'中引用'success'的引号。 – 2014-10-20 07:47:50