2017-08-25 35 views

回答

3
  1. $scope.date是一個函數,所以稱其爲這樣

    {{date() | date: 'medium'}} 
    
  2. $scope.date不返回任何東西。修復它

    $scope.date = function() { return Date.now() } 
    // Note the "return" ------^ 
    

https://jsfiddle.net/b6xgjfwg/14/