今天被身边的众神拉出来一个很二的bug,发现javascript里面 parse…

今天被身边的众神拉出来一个很二的bug,发现javascript里面

parseInt('09') = 0

所以需要

'09' * 1 = 9; '09'-0 = 9; new Number('09') = 9

太生疏了

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.