<script>
var myPath = window.location.href;
myPath = myPath.substring(0,myPath.indexOf("b.htm"));
myPath += "a.htm";
alert(myPath);
</script>
var myPath = window.location.href;
myPath = myPath.substring(0,myPath.indexOf("b.htm"));
myPath += "a.htm";
alert(myPath);
</script>
解决方案 »
- 求教一个web开发方面的一个基本业务逻辑
- javascript/jquery跟activex交互,即与object对象交互
- js如何获取一个值之后判断是否执行另外一个js方法?
- function init()这个函数是什么意思?
- SWFUPLOAD插件应用的问题
- 如果拖动 改变 tables 中 td 的宽度!!
- 关于getAttribute
- sencha touch中xtype创建dataview不显示(急,救命~)
- 兼容性问题(关于IE和NETACAPE),在线急等
- 求指点方法,幻灯片.
- ts=fso.opentextfile("test.txt",forreading);给小女子看一下代码吧!!
- 高手请帮忙,用JavaScript如何取得当前的日期,并转换为"YYYY-MM-DD"的形式???
alert(window.location.href)
</script>