时间戳转化为时间

1 $scope.getLocalTime = function (n) {
2             return new Date(n).toLocaleDateString();
3  };

猜你喜欢

转载自www.cnblogs.com/miacara94/p/8920259.html