本方法通过vue.js filter实现将unix时间戳转换为自定义标准时间格式
<!-- js代码 -->
$().ready(function() {
<!-- 自定义filter名称为'time' -->
Vue.filter('time',
<!-- value 格式为13位unix时间戳 -->
<!-- 10位unix时间戳可通过value*1000转换为13位格式 -->
function(value) {
var date = new Date(value);
Y = date.getFullYear(),
m = date.getMonth() + 1,