javascript獲取web應用根目錄的方法_javascript技巧
來源:懂視網
責編:小采
時間:2020-11-27 21:19:36
javascript獲取web應用根目錄的方法_javascript技巧
javascript獲取web應用根目錄的方法_javascript技巧: 代碼如下: function getRootPath(){ var strFullPath=window.document.location.href; var strPath=window.document.location.pathname; var pos=strFullPath.indexOf(strPath); var prePath=st
導讀javascript獲取web應用根目錄的方法_javascript技巧: 代碼如下: function getRootPath(){ var strFullPath=window.document.location.href; var strPath=window.document.location.pathname; var pos=strFullPath.indexOf(strPath); var prePath=st

代碼如下:
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
javascript獲取web應用根目錄的方法_javascript技巧
javascript獲取web應用根目錄的方法_javascript技巧: 代碼如下: function getRootPath(){ var strFullPath=window.document.location.href; var strPath=window.document.location.pathname; var pos=strFullPath.indexOf(strPath); var prePath=st