查找一个String中存储的多个数据
String类型字符串currVal中,
以“,”分隔单个数据,以“|”分隔每组数据;
代码:
var tempuseridstart = String.indexOf( ",", String.search(currVal)) + 1; var tempuseridend = String.indexOf( "|", String.search(currVal)); var curruserid= String.substring( tempuseridstart, tempuseridend);