标签:
var t=document.getElementsByTagName("SCRIPT"), src = t[t.length - 1].src, baseSrc = src.replace(/(\/[^\/]*?)$/i, ‘‘);
获取当前JS所在文件夹
原文地址:http://www.cnblogs.com/junb/p/4253544.html