js获取文件所在的文件夹路径

const path = document.querySelector('#folder').value;
const dirPath = path.substring(0,path.lastIndexOf("/") + 1);
点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注