$http({
method: 'POST',
datatype: 'json',
url: '/CreateUser',
data: data
cache: false
}).success(function(data) { //Error:jslint gives me error here for bad looping
console.log(data.message);
}).error(function(error) {
console.log(error.message);
});
我在Atom编辑器中使用jslint包,在那里我传递回调响应,它给我错误错误:jslint给我错误这里的坏循环这是什么?有人能给我解释一下吗?
成功回调中有两个}
$http({
method: 'POST',
datatype:'json',
url: '/CreateUser',
data:data
cache: false
}).success(function (data){
console.log(data.message);
}).error(function (error){
console.log(error.message);
});