网站首页
编程语言
数据库
系统相关
其他分享
编程问答
numberToChinese
2024-11-25
写一个把数字转成中文的方法,例如:101转成一百零一
functionnumberToChinese(num){if(num<0||num>999999999999){return"超出范围";}constunits=["","十","百","千","万","十万","百万","千万","