Skip to content
New issue

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

formateTime函数对于params类型判断错误从而可能导致异常 #18

Open
EthanShen10086 opened this issue Aug 16, 2024 · 0 comments · May be fixed by #19
Open

formateTime函数对于params类型判断错误从而可能导致异常 #18

EthanShen10086 opened this issue Aug 16, 2024 · 0 comments · May be fixed by #19

Comments

@EthanShen10086
Copy link

image
timePicker.js 文件中 formatTime 函数对于date参数的判断写的有问题 当date !== 'string'并且不为string 或者number等可以被Date类型解析的也会执行date = new Date(date) 从而导致异常
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant