<< true >>
parseInt(): NaN
Number(): 1
-----------------------
<< null >>
parseInt(): NaN
Number(): 0
-----------------------
<< undefined >>
parseInt(): NaN
Number(): NaN
-----------------------
<< 0 >>
parseInt(): 0
Number(): 0
-----------------------
<< function isNaN() { [native code] } >>
parseInt(): NaN
Number(): NaN
-----------------------
<< {} >>
parseInt(): NaN
Number(): NaN
-----------------------
<< [] >>
parseInt(): NaN
Number(): 0
-----------------------
<< "" >>
parseInt(): NaN
Number(): 0
-----------------------
<< 123.56 >>
parseInt(): 123
Number(): 123.56
-----------------------
<< "123.56#" >>
parseInt(): 123
Number(): NaN
-----------------------
<< function () {
} >>
parseInt(): NaN
Number(): NaN
-----------------------
沒有留言:
張貼留言