vue获取当前日历和星期
currentTime: function () {
var d = new Date(), str = '';
str += d.getFullYear() + '年 ';
str += d.getMonth() + 1 + '月 ';
str += d.getDate() + '日 ';
str += "星期" + "日一二三四五六".charAt(new Date().getDay());
return str;
},
$('#nowTime').html(t.currentTime());
window.setInterval(
function () {
$('#nowTime').html(t.currentTime());
}, 1000);
$('.counter').countUp({
delay: 10,
time: 2000
});