vue截取

var url = "http://xxxxxxxxxxx.oss-xxxxxxxxxxx.aliyuxxxxxx.com/zsdl/image/9674725052.png";
var extension = url.substring(url.indexOf(".com") + 4);
console.log(extension);

你可能感兴趣的:(vue.js,javascript,前端)