转换中文数字为数字【万亿以下,壹贰叁或一二三的中文,小数皆可】
上午没什么事,记得上次做Excel导入读取中文日期,感觉还是有必要的,就想着做个能导入所有中文数字的js也不错,就有了如下代码
var numArray = [
0,1,2,3,4,5,6,7,8,9,10,100,1000,10000,100000000
];
var numChArray = [
"零","一","二","三","四","五","六","七","八","九","
原创
2014-01-03 13:25:01 ·
1454 阅读 ·
0 评论