文件名称:js将数字转换成中文
文件大小:35KB
文件格式:DOC
更新时间:2014-06-21 05:36:39
javascript
js将数字转换成中文 function transform(tranvalue){ try{ var i=1; var dw2 = new Array("","万","亿");//大单位 var dw1 = new Array("拾","佰","仟");//小单位 var dw = new Array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖");//整数部分用 //以下是小写转换成大写显示在合计大写的文本框中 //分离整数与小数 var source = splits(tranvalue); var num = source[0]; var dig = source[1];