主要函数代码: 代码如下:function Chinese(num) { if(!/^\d*(\.\d*)?$/.test(num)) { alert(“你输入的不是数字,请重新输入!”); return false; } var AA = new Array(“零”,”壹”,”贰”,”叁”,”肆”,”伍”,”陆”,”柒”,”捌”,”玖”); var BB = new Array(“”,”拾”,”佰”,”仟”,”万”,”亿”,”点”,””); var a = (“”+ num).replace(/(^0*)/g, “”).split(“.”), k = 0, re = “”;