Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1206776
  • 博文数量: 788
  • 博客积分: 4000
  • 博客等级: 上校
  • 技术积分: 7005
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-19 15:52
文章存档

2017年(81)

2011年(1)

2009年(369)

2008年(337)

分类: 敏捷开发

2017-07-17 21:15:24


var checked_list = state.files.filter(function(item, id){
        // console.log('click the ' + item.id);
        return item.id == id;
      });
      console.info(checked_list);

这是为什么呢?this.fileid=1的情况下也无法正确过滤出数组




这个答案描述的挺清楚的:
阅读(822) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~