Date: 2021-08-04 17:54:45, Hit: 256
function parsePrice(money) {
    var n=2;
    money=parseFloat((money+"").replace(/[^\d\.-]/g,"")).toFixed(n)+"";
    var l=money.split(".")[0].split("");
    var r=money.split(".")[1];
    var t="";
    for(i=0;i<l.length;i++) {
        t+=l[i];
    }
    return '¥'+t+"."+r;
}
Edit Delete
License by Moony