Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以使用当前日期确定一天是星期一、星期二等吗?
试试这个:
var day = new Date('12/03/2012').getDay();
从周日开始