Why does Javascript parseInt('0x4Avv') return the same as parseInt('0x4A')
I was counting on parseInt('0x4Avv') to return NaN.
Is there anyway to make it behave as such?
Even weird strings 'work', e.g: parseInt('0x4Av--9-0-90v') yields the same result as parseInt('0x4A')
Observed in all browsers....
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…