错误“未定义不是函数(评估'_ajax.ajax.getJSON(getIntervalUrl(response)).interval(10000)')”;
export const chartOneDayEpic = action$ => action$.ofType(FETCHING_CHART_DATA_ONE_DAY)
.mergeMap(action => ajax.getJSON(getChartOneDayUrl(action))
.timeout(10000)
.retry(3)
.switchMap(response => ajax.getJSON(getIntervalUrl(response))
.interval(10000)
.timeInterval()
.map(intervalDataResponse => fetchChartDataSuccess(response.concat(intervalDataResponse)))
.catch(err => Observable.of(fetchChartDataFailure(err))
)
)
);
这意味着 ajax.getJSON 没有 .interval 函数,我不知道为什么,知道吗?