摘要: js 工具 去除空格 const trim = function(str, type) { // 去除空格, type: 1-所有空格 2-前后空格 3-前空格 4-后空格 type = type || 1 switch (type) { case 1: return str.replace(/\s 阅读全文
posted @ 2022-04-07 20:02 橘子味儿的猫 阅读(68) 评论(0) 推荐(0) 编辑