📜  javascript 如何打印工作目录 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:03:23.448000             🧑  作者: Mango
代码示例1
var loc = window.location.pathname;
var dir = loc.substring(0, loc.lastIndexOf('/'));