把数值格式化成大写人民币的PHP跟js代码

JS代码:

function c(str) {
console.log(str);
}

function format_price($money){
var cny = parseFloat($money).toFixed(2);

var _num = [“0″,”壹”,”贰”,”叁”,”肆”,”伍”,”陆”,”柒”,”捌”,”玖”];
var _unit = [“圆”,”整”,”角”,”分”];
var _unit2 = [“”,”拾”,”佰”,”仟”];
var _unit3 = [“”,”万”,”亿”,”万”,”亿”];

 
Copyright © 2008-2021 lanxinbase.com Rights Reserved. | 粤ICP备14086738号-3 |