截取/前的字符
var index = pythonpath.lastIndexOf("/");
Writepathexe = pythonpath.substring(0, index);
截取/后的字符
var index = pythonpath.lastIndexOf("/");
str =str .substring(index+1,str.length);
var index = pythonpath.lastIndexOf("/");
Writepathexe = pythonpath.substring(0, index);
截取/后的字符
var index = pythonpath.lastIndexOf("/");
str =str .substring(index+1,str.length);
本文标题:js 截取特殊字符前后的所有字符串
本文链接:https://www.haomeiwen.com/subject/xnmtzktx.html
网友评论