我在一个test.asp文件中这样写:
function test()
{
var srtPath=location.href;
alert(strPath);
}
test.asp的完整路径是:C:\Inetpub\wwwroot\test.asp
运行的结果是:http://localhost/test.asp
可是,在这里我想得到的是:C:/Inetpug/wwwroot/
如何解决呢?
function test()
{
var srtPath=location.href;
alert(strPath);
}
test.asp的完整路径是:C:\Inetpub\wwwroot\test.asp
运行的结果是:http://localhost/test.asp
可是,在这里我想得到的是:C:/Inetpug/wwwroot/
如何解决呢?
解决方案 »
- 谁帮解释哈这个算法
- 关于百度贴吧 抢楼
- 发帖认识下
- FF中关于document.write(<iframe></iframe>)的BUG
- 用javscript实现帮助文档,带有模糊查询既是索引功能(共同研究)
- ActiveXObject新建時提示要有物件
- 如何用js代码屏蔽js错误,try catch抛掉可以吗
- |zyciis| 200分 求一个JS二级菜单 第二贴 xiaojing7 给的菜单有问题不像我要的那个
- 如何用html或是javascript实现目录选择
- 如何用正则表达式将"./&?:\"替换成"012345"
- getElmentById的具体用法
- parent.document.getElementById("main").src中的parent是什么意思?
{
var srtPath=<%=server.MapPath("/")%>;
alert(strPath);
}