得到的路径是
url : "/devapihttps://ossdcd.nyncjxx.com/202403/18/1710744688215/xiaomai.jpg"
去除/dev-api,只要后面的
url.replace(/dev-api, "") string.replace(searchValue, newValue)
let originalString = "Hello, World!";
let newString = originalString.replace("World", "Universe");
console.log(newString); // 输出 "Hello, Universe!"