How would one use moment.js to get the number of days in the current month? Preferably without temporary variables.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
Moment has a
daysInMonth
function: