/**
* @description 返回周几
* @author fzg
*/
export const dateToWeek = (date) => {
return "周" + "日一二三四五六".charAt(new Date().getDay());
}
JS 根据date日期格式返回周几
最新推荐文章于 2024-07-15 22:00:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
/**
* @description 返回周几
* @author fzg
*/
export const dateToWeek = (date) => {
return "周" + "日一二三四五六".charAt(new Date().getDay());
}