摘要: javascript获得当前文档的相对路径 function fRelativePath(sRelative) { // shawl.qiu code, return string var sUrl = document.URL; sUrl = sUrl.replace(/^.*?\:\/\/[^\/]+/, "").replace(/[^\/]+$/, ""); if(!sRelative)... 阅读全文
posted @ 2010-03-29 18:50 gisdream 阅读(1571) 评论(0) 推荐(0) 编辑