private function getGet():Object
{
var url:String = __JS__('window.document.location.href.toString()');
var u:* = url.split("?");
if (u[1] is String)
{
u = u[1].split("&");
var gets:Object = {};
for (var i:String in u)
{
var j:String = u[i].split("=");
gets[j[0]] = j[1];
}
return gets;
}
return { };
}
//使用方法
var GET:Object = getGet();
trace('id: ',GET['id']);
if(!Browser.window.conch)
{
var tempUrl:String = Browser.window.location.href;
var u:Array = tempUrl.split("?");
var gets:Object = {};
if (u[1] is String)
{
u = u[1].split("&");
for (var i:String in u)
{
var j:String = u[i].split("=");
gets[j[0]] = j[1];
}
}
3 个回复
govenlive
赞同来自: Laya_XS 、ohkei
cuixueying
赞同来自:
keeplook
赞同来自:
{
var tempUrl:String = Browser.window.location.href;
var u:Array = tempUrl.split("?");
var gets:Object = {};
if (u[1] is String)
{
u = u[1].split("&");
for (var i:String in u)
{
var j:String = u[i].split("=");
gets[j[0]] = j[1];
}
}
if(gets.hasOwnProperty("fromuser"))
{
this.input_jjrcode.text = gets.fromuser;
}
}