We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const time1 = '05:00' // 符合 'HH:mm' 格式 const parsedTime = dayjs(time1, 'HH:mm') console.log(parsedTime.isValid()) // true
放在官网执行返回true 放在vue2 mounted里边执行 返回false
The text was updated successfully, but these errors were encountered:
没加 extend customParseFormat 吧
const dayjs = require('dayjs') const customParseFormat = require("dayjs/plugin/customParseFormat"); dayjs.extend(customParseFormat); const time1 = '05:00' const parsedTime = dayjs(time1, 'HH:mm') console.log(parsedTime.isValid()) // true
Sorry, something went wrong.
No branches or pull requests
const time1 = '05:00' // 符合 'HH:mm' 格式
const parsedTime = dayjs(time1, 'HH:mm')
console.log(parsedTime.isValid()) // true
放在官网执行返回true
放在vue2 mounted里边执行 返回false
The text was updated successfully, but these errors were encountered: