代码如下: function NoToChinese(num) { if (!/^\d*(\.\d*)?$/.test(num)) { alert(“Number is wrong!”); return “Number is wrong!”; } var AA = new Array(“零”, “壹”, “贰”, “叁”, “肆”, “伍”, “陆”, “柒”, “捌”, “玖”); var BB = new Array(“”, “拾”, “佰”, “仟”, “萬”, “億”, “点”, “”)