一个很不错的JS获取地址栏传值
作者:sontin 日期:2009-08-28
一个很不错的JS获取地址栏传值
程序代码
程序代码function GetUrlParam( paramName )
{
var oregex = new RegExp( '[\?&]' + paramName + '=([^&]+)', 'i' ) ;
var oMatch = oregex.exec( window.top.location.search ) ;
if ( oMatch && oMatch.length > 1 )
return decodeURIComponent( oMatch[1] ) ;
else
return '' ;
}
var sConnUrl = GetUrlParam( 'Connector' ) ;
{
var oregex = new RegExp( '[\?&]' + paramName + '=([^&]+)', 'i' ) ;
var oMatch = oregex.exec( window.top.location.search ) ;
if ( oMatch && oMatch.length > 1 )
return decodeURIComponent( oMatch[1] ) ;
else
return '' ;
}
var sConnUrl = GetUrlParam( 'Connector' ) ;
评论: 0 | 引用: 0 | 查看次数: 714
发表评论
<$NewMsg$>
上一篇
下一篇

文章来自:
Tags: 




