angular - 在Controller中使用filter houbbbbb 2021-03-17 66 阅读1分钟 世界上并没有完美的程序,但是我们并不因此而沮丧,因为写程序就是一个不断追求完美的过程。 app.controller('TestController',function($scope, $filter){ $scope.time = $filter('timeFormat')('2021-03-17'); }