<script>
tt=window.location.href;
tt=tt.slice(tt.lastIndexOf('\')+1,tt.length)
alert(tt)
</script>或者是:<script>
tt=window.location.href;
tt=tt.slice(tt.lastIndexOf('\/')+1,tt.length)
alert(tt)
</script>
tt=window.location.href;
tt=tt.slice(tt.lastIndexOf('\')+1,tt.length)
alert(tt)
</script>或者是:<script>
tt=window.location.href;
tt=tt.slice(tt.lastIndexOf('\/')+1,tt.length)
alert(tt)
</script>
解决方案 »
- 如何实现鼠标悬浮改变背景图片
- 求助使用ajax无刷提交表单时,按钮onsubmit事件问题
- JQuery-Tree view 问题, 动态添加结点后,无法伸缩
- 各位大哥,有没有顶部和底部不动,中部根据顶部的链接变换的实例代码?
- 趣味测试,考考大家js变量作用域的知识。答对的有奖,哈哈
- 正则表达式如何匹配123321 , 12321这样的对称数
- 梅花雪得控件如何使用
- 紧急求助:<body onLoad="myfunction(<%=myparameter%>)">是否可行??
- 如何用js检测一个cookies是否存在?
- 怎样实现点击连接后出现“目标另存为...”的对话框?
- 能不能取道这样一个文本框的值?
- 父窗口如何得到子窗口超链接中的值
tt=window.location.href;
tt=tt.substring(tt.lastIndexOf('/')+1,tt.length);
alert(tt);
</script>