请问:使用脚本语言是否可以取得本地的html文件所在的目录?

如题!
---------------------------------------------------------------

1<script language="javascript">   
2alert(window.location.href.substring(0, window.location.href.lastIndexOf("/")));   
3</script>

---------------------------------------------------------------

1<script language="javascript">   
2alert(window.location.href.substring(0, window.location.href.lastIndexOf("/")));   
3</script>

同意~~~~~~`

Published At
Categories with Web编程
comments powered by Disqus