var v = "1,2,3";
var arr = v.toString().split(",");
备注:最好先toString()转为字符串,不然有些情况下,会报找不到split()方法;
Copyright © 2024 zkx4213 Powered by .NET 9.0 on Kubernetes