Why does 'valueAsNumber' return NaN as a value?

后端 未结 2 1357
日久生厌
日久生厌 2020-12-11 00:59

In the code below, I am trying to call valueAsNumber but I just get a NaN returned. When I use parseInt I get the result I expect. Why Is this?

2条回答
提交回复
热议问题