js代码
var myApp = angular.module(‘myApp‘, []); myApp.controller(‘MyCtrl‘,[‘$scope‘, ‘$parse‘, function($scope, $parse) { $scope.today = new Date(); }]);
AngularJS入门教程:日期格式化
原文:http://www.cnblogs.com/waisonlong/p/5194266.html