function
GetQueryString(name)
{
var reg = new RegExp( " (^|&) " + name + " =([^&]*)(&|$) " );
var r = window.location.search.substr( 1 ).match(reg);
if (r != null ) return unescape(r[ 2 ]); return null ;
}
// 将url作为参数传入
var strUrl = ' http://localhost/phone/phone.php?UserEvent=SignIn&EnterpriseID=0000011&UserName=1004 ' ;
alert (GetQueryString(str, ' UserEvent ' ));
function GetQueryString(url,name)
{
var reg = new RegExp( " (^|&) " + name + " =([^&]*)(&|$) " );
var arr = url.split( " ? " );
// alert(arr.length);
// alert(arr[1]);
var r = arr[ 1 ].match(reg);
if (r != null ) return unescape(r[ 2 ]); return null ;
}
{
var reg = new RegExp( " (^|&) " + name + " =([^&]*)(&|$) " );
var r = window.location.search.substr( 1 ).match(reg);
if (r != null ) return unescape(r[ 2 ]); return null ;
}
// 将url作为参数传入
var strUrl = ' http://localhost/phone/phone.php?UserEvent=SignIn&EnterpriseID=0000011&UserName=1004 ' ;
alert (GetQueryString(str, ' UserEvent ' ));
function GetQueryString(url,name)
{
var reg = new RegExp( " (^|&) " + name + " =([^&]*)(&|$) " );
var arr = url.split( " ? " );
// alert(arr.length);
// alert(arr[1]);
var r = arr[ 1 ].match(reg);
if (r != null ) return unescape(r[ 2 ]); return null ;
}