星空网 > 软件开发 > Java

js 得到当前季度

 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 };

调用方式:

new Date().getQuarter(); 




原标题:js 得到当前季度

关键词:JS

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

越南到美国海运价格:https://www.goluckyvip.com/tag/104605.html
直达越南货运:https://www.goluckyvip.com/tag/104607.html
中国海运到越南多久:https://www.goluckyvip.com/tag/104608.html
海运中国到越南多久:https://www.goluckyvip.com/tag/104609.html
报关:https://www.goluckyvip.com/tag/10461.html
去越南的海运费:https://www.goluckyvip.com/tag/104610.html
你心目中的十大旅游景点有哪些?:https://www.vstour.cn/a/404234.html
万盛旅游景点分布图 万盛旅游景点介绍:https://www.vstour.cn/a/404235.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流