-
Notifications
You must be signed in to change notification settings - Fork 4
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
JS 性能tips #7
Comments
千万别用forEach循环数组。性能超差。 |
常用运算测试: 常用运算总体不会特别慢,只是相对间作比较。只在大量运算的时候,可以用性能好的运算方式替换不好的运算方式,可以取得一些优化效果。
|
判断是否数组。 |
一些JS的方法有性能坑,平时可以不用管,在压榨性能的场景下,需要用到。此贴作为积累和记录。
The text was updated successfully, but these errors were encountered: