js >"12345.00".slice(0,-1) 12345.0 ... 它无条件删除string中的最后四个字符 s 。 ... const s = "your string"; const withoutLastFourChars = s.slice(0, -4);.
確定! 回上一頁