element split 将多个单号分隔

const condeid = this.formData.WayBillCode;
var item = "";
const codes = condeid.split(","); for (var i = ; i < codes.length; i++) {
if (i + === codes.length) {
item += "'" + codes[i] + "'";
} else {
item += "'" + codes[i] + "',";
}
}
---------------------------------------------------------------
 const valList = val.split(/,|,|、|\s/);              //可以分割多种;
 
 
 
上一篇:sql:除非另外还指定了 TOP 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询


下一篇:php导出excel,使用table,如何让首位是0的纯数字字符串保留首位的0