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

加几个小小的建议 #15

Open
wufuqi123 opened this issue Dec 15, 2022 · 1 comment
Open

加几个小小的建议 #15

wufuqi123 opened this issue Dec 15, 2022 · 1 comment

Comments

@wufuqi123
Copy link

string:
indexOf 和 lastIndexOf 在周六有5%的几率会返回 (-1) 到 (length-1) 出bug会被紧急召回加班
slice substring substr 截取的字符串 10%几率导致数组某个角标的字符串是空串

date:
getFullYear getMonth getDate 这三个方法调用时间间隔不超过2ms,有5%的几率让getDate方法随意返回一个字符串,如:2022-12-AJbh
getHours getMinutes getSeconds 同上

Math.random 有周四一直返回 0.31415926

err.message 字符串一直为:a is not defined

@chao325
Copy link
Owner

chao325 commented Dec 15, 2022 via email

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

No branches or pull requests

2 participants