¥ 3
(0)代码与运行结果
<div class="cnblogs_code">
let [reg,info,rmb,result] =/^(¥)(-?[0-9,]+)(\.[0-9]+)?/'金额','符号','整数部分','小数分部''¥10.01','¥10','¥1,111.01',000,12','¥0.1','¥10.00'=>'---------------------------------------------------------------------------------' (let i = 0,result = reg.exec(value); i < result.length; i++=