时间格式化:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Simple app</title>
<script src="http://apps.bdimg.com/libs/angular.js/1.2.16/angular.min.js"></script>
</head>
<body>
<div ng-app="myApp">
<div ng-controller="MyController">
<h1>hello {{ name | date:'dd/mm/yyyy, hh:mm:ss a'}} </h1>
</div>
</div>
<script type="text/javascript">
angular.module('myApp', [])
.controller('MyController',
function ($scope) {
$scope.name = Date.now();
});
</script>
</body>
</html>