js

toString(); var n='dsfsd3432'  n. toString();   toFixed(3);

   parseInt('3 dfs')把一个字符串减去0 就转化为了数字 paseInt('12.45')//12 paseInt('fdsfs') paseInt('$2312')// typeof   NaN  转化失败时返回。

原文地址:https://www.cnblogs.com/ldms/p/3316273.html