用户回答. 假设1月至3月被视为第一季度,以下代码有效: var today = new Date(); var quarter = Math.floor((today.getMonth() + 3) / 3);. 这给了你:
確定! 回上一頁