JS如何获取指定字符后面的内容
日期:2022-09-29
function getCaption(obj) { var index = obj.lastIndexOf("\/"); obj = obj.substring(index+1, obj.length); // console.log(obj); return obj; } var str = "ECSHOP插件网/ECSHOP.CX"; console.log(getCaption(str));
本文原创地址:https://www.ecshopok.com/article-927.html
版权所有 © 转载时必须以链接形式注明出处!
觉得本文对您有用,想收藏下来!方法很简单:请点击-〉
暂无评论,来发表一个吧