如果我将我的应用程序托管在目录中.应用程序路径是目录名称.
例如
http://192.168.1.2/AppName/some.html
如何在我的情况下使用javascript应用程序名称/AppName.
/AppName
document.domain正在返回主机名并document.URL返回整个Url.
document.domain
document.URL
编辑
应用程序路径可能更复杂,如 /one/two/thre/
/one/two/thre/
javascript
javascript ×1