美文网首页工作总结
js:截取指定字符串

js:截取指定字符串

作者: 轩轩小王子 | 来源:发表于2019-02-16 19:45 被阅读0次
     getCaption(obj,str){
    
                var index=obj.lastIndexOf(str);
    
                obj=obj.substring(index+1,obj.length);
    
                return obj;
    
            },
    

    相关文章

      网友评论

        本文标题:js:截取指定字符串

        本文链接:https://www.haomeiwen.com/subject/fbpieqtx.html