任何数字,都是数字。字符串看起来像一个数字,它就是数字。其他所有东西,它都是NaN。
'a' => NaN '1' => 1 1 => 1
https://stackoverflow.com/questions/12862624
相似问题