JavaScript获取季度
// 获取当前季度: var currMonth= new Date().getMonth()+1; var currQuarter = Math.floor( ( currMonth % 3 == 0 ? ( currMonth / 3 ) : ( currMonth / 3 + 1 ) ) );
// 获取当前季度: var currMonth= new Date().getMonth()+1; var currQuarter = Math.floor( ( currMonth % 3 == 0 ? ( currMonth / 3 ) : ( currMonth / 3 + 1 ) ) );