你的位置:首页 > 软件开发 > Java > js 得到当前季度

js 得到当前季度

发布时间:2016-01-11 17:00:16
1 Date.prototype.getQuarter = function() { 2 var month = this.getMonth(); 3 if(month < 3) { 4 return 第一季度; 5 }else if ...
 1 Date.prototype.getQuarter = function() { 2     var month = this.getMonth(); 3     if(month < 3) { 4       return '第一季度'; 5     }else if(month < 6) { 6       return '第二季度'; 7     }else if(month <9) { 8       return '第三季度'; 9     }else if(month <12) {10       return '第四季度';11     }12 };

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:js 得到当前季度

关键词:JS

JS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。