错误:jslint在这里给我错误的循环

Error: jslint gives me error here for bad looping

本文关键字:错误 循环 在这里 jslint      更新时间:2023-09-26
$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);
});