coding rules
Thursday, February 3, 2011
parseint defect
When using parseInt() in javascript to convert or check "08" (e.g. parseInt("08")), then it would return 0. Instead use parseInt("08",10), i.e base 10 for converting or checking.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)