js去地址栏参数索引取法
var URLParams = new Object() ;
var aParams = document.location.search.substr(1).split('&') ;
for (i=0 ; i < aParams.length ; i++) {
var aParam = aParams[i].split('=') ;
URLParams[aParam[0]] = aParam[1] ;
}
posted on 2009-04-13 11:56
sanmao 阅读(102)
评论(0) 编辑 收藏