使用ng-repeat的表格中的数据从页面中消失

时间:2017-06-19 20:23:46

标签: javascript html angularjs local-storage

我创建了以下网站: http://expenseappusingangular.azurewebsites.net/

我在页面底部的支出明细表中有以下代码:

error_queue = []
max_errors = 3
for log_line in log_lines:
    log_ts = get_timestamp(log_line)
    if contains_error(log_line):
        error_queue.append(log_ts)
        interval_start = log_ts - datetime.timedelta(minutes=5)
        try:
            threshold = error_queue[-max_errors]
        except IndexError:
            continue
        if threshold and threshold >= interval_start:
            raise Exception

输入一两个费用后,等待几分钟,然后刷新页面,底部表格中的数据消失但仍反映在类别表和图表中。我在浏览器中检查了本地存储,而且费用对象仍在那里。

你知道为什么值从这个底部表中消失了吗?

谢谢!

0 个答案:

没有答案