function getCaption(obj){
var index=obj.lastIndexOf("|");//若不能识别,前面加转义字符 \
obj=obj.substring(index+1,obj.length);
// console.log(obj);
return obj;
}
var str=" aaaaa|ccccc";
getCaption(str);
function getCaption(obj){
var index=obj.lastIndexOf("|");//若不能识别,前面加转义字符 \
obj=obj.substring(index+1,obj.length);
// console.log(obj);
return obj;
}
var str=" aaaaa|ccccc";
getCaption(str);