getString(obj, state){
var index=obj.lastIndexOf("\-");
if(state==0){
obj=obj.substring(0,index);
}else {
obj=obj.substring(index+1,obj.length);
}
return obj;
}
let str = “aaa-bbb-ccc”
let str1 = this.getCaption(str,0) //aaa
let str2 = item.name2 = this.getCaption(str,1) //bbb
let str3 = item.name2 = this.getCaption(str,2) //ccc