您好我正在寻找比较cypress中2个值的解决方案。
期望值== 34 000,00,我的价值34000
有没有人知道Intl.NumberFormat
或任何其他人将我的价值设定为正确的风格?
var number = 34000;
console.log(new Intl.NumberFormat('pl-PL', { style: 'decimal', minimumFractionDigits: 2 }).format(number));
// Output: "34 000,00"