.filter('getWeek', function() { return function(input) { var date = new Date(input * 1000); var week = date.getDay(); switch (week) { case 0: return "星期天"; break; case 1: return "星期一"; break; case 2: return "星期二"; break; case
目录1 json的key...value问题 遍历json的key...value的时候报错: [tslint] for (... in ...) statements must be filtered with an if statement 原代码: for (let key in this.targetList[0]) { this.tableHeaders.push({ value: key, name: key }) } 修改为: for (const key in Object.ke