标签: javascript
此代码返回NaN。据我了解,这是日期格式中的问题。我该怎么解决?
NaN
var currentDate = '22.05.2019'; var date = new Date(currentDate); console.log(date.getDate());