str为要截取的字符串 通过获取字符串中“-”的坐标index,其他特殊字符以此类推 效果如图, ...
str为要截取的字符串 通过获取字符串中“-”的坐标index,其他特殊字符以此类推 效果如图, ...
...
int index = path.lastIndexOf("."); char[] ch = path.toCharArray(); //根据 copyValueOf(char[] data, int offset, int count) 取得最后一个字符串 String ...
创建测试表及数据 1 2 3 4 ...
function getCaption(obj){ var index=obj.lastIndexOf("\-"); obj=obj.substring(index+1,obj.length ...
JS字符串截取(获取指定字符后面的所有字符内容) function getCaption(obj){ var index=obj.lastIndexOf("\-"); obj=obj.substring ...
function getCaption(obj){ var index=obj.lastIndexOf("\-"); obj=obj.substring(inde ...
function getCaption(obj, text){ let index = obj.lastIndexOf(text) + text.length-1; obj ...