JavaScript Jak wydrukować katalog roboczy
var loc = window.location.pathname;
var dir = loc.substring(0, loc.lastIndexOf('/'));
Cautious Cicada
var loc = window.location.pathname;
var dir = loc.substring(0, loc.lastIndexOf('/'));