字符串转换

1、字符串转换为整数

parseint()

2、字符串转换为小数

parsefloat()

posted @ 2018-01-20 22:41  绿林豪士  阅读(174)  评论(0编辑  收藏  举报