var picSrc = $('img', '.banner').attr('src'),
index = picSrc.lastIndexOf("\/"),
routing = picSrc.substring(0, index + 1),//img文件夹的路由
var picSrc = $('img', '.banner').attr('src'),
index = picSrc.lastIndexOf("\/"),
routing = picSrc.substring(0, index + 1),//img文件夹的路由
本文标题:截取最后一个“/”前后的内容
本文链接:https://www.haomeiwen.com/subject/ruuapttx.html
网友评论