Request = {
QueryString : function(item){
var svalue = location.search.match(new
RegExp('[?&]' + item + '=([^&]*)(&?)','i'));
return svalue ? svalue[1] : svalue;
}
}
var key = Request.QueryString('key');
Request.QueryString是否跟ASPNET和JAVA很象呢?
时间:2024-3-2 06:19 作者:韩俊 分类: Javascript
Request = {
QueryString : function(item){
var svalue = location.search.match(new
RegExp('[?&]' + item + '=([^&]*)(&?)','i'));
return svalue ? svalue[1] : svalue;
}
}
var key = Request.QueryString('key');
Request.QueryString是否跟ASPNET和JAVA很象呢?
标签: javascript