📜  如何在 js 中剪切字符串 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:34.543000             🧑  作者: Mango

代码示例1
let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
 Run code snippetHide results