spaasteam / spaas-daily-practice

spaas团队的每日一练,欢迎小伙伴们提交踊跃答案!
4 stars 2 forks source link

第 47 题: 编写一个函数,输出文件相对路径 #55

Closed Htongbing closed 5 years ago

Htongbing commented 5 years ago
function relativePath() {}
// 参数:当前文件,引用文件
relativePath('/a/b/c/d/e.js', '/a/b/f/g.js') // '../../../f/g.js'