最佳答案
date对象上调用getMonth()和getDate()时,我们将得到single digit number. c对象。
例如:
对于january,它显示1,但我需要将其显示为01。怎么做呢?