Date.prototype.getQuarter = function() { var month = this.getMonth(); if(month < 3) { return '第一季度'; }else if(month < 6) { return '第二季度'; }else if(month <9) { return '第三季度'; }else if(month <12) { return '第四季度'; } };调用方式:new Date().getQuarter();