parent此上下文未在子范围中定义

时间:2016-03-09 11:25:14

标签: javascript jquery angularjs

我尝试在$ .each循环中加入current_series

然而,它不起作用,任何想法?

异常

Uncaught ReferenceError: current_series is not defined(…)

JS

$.each($scope.flights, function() {
    var current_series = this;
    $.each(current_series.data, function(){
      console.log(current_series)
    })
});

0 个答案:

没有答案