js时间的一些处理

判断是否为同一天
function isSameFay(t) {
    return new Date(t).toDateString() === new Date().toDateString();
}