你都能说出来了,转换成代码也不难吧const isDistance9 = end => { const d = new Date(end); const now = new Date(); const difMonth = d.getMonth()-now.getMonth() return now.getFullYear() == d.getFullYear() && difMonth<=9 && difMonth>=0 }
你都能说出来了,转换成代码也不难吧