切除掉最后一个字符,返回切割后的字符串

let str='365D';
str.slice(0, -1);//str 365
posted @ 2023-04-10 15:48  ZQ-404  阅读(9)  评论(0)    收藏  举报