js中两个常用方法(1.获取当前工程的虚拟目录;2.移除数组指定位置上的元素)
<br />/**<br /> * 获取当前工程的虚拟目录<br /> * @return<br /> */ <br />function getRootPath(){<br /> var strFullPath=window.document.location.href;<br /> var strPath=window.document.location.pathname;<br /> var pos=strFullPath.i
原创
2010-09-14 15:41:00 ·
1715 阅读 ·
0 评论