Var user=window. The parent. The location. The search//get the url "?" Following the string
If (user. IndexOf ("?" )!=1) {
Var STR=user. Substr (1);
STRS=STR. Split (" & amp;" );
}
The userName=decodeURIComponent (STRS [0]. Replace (" userName=", ""));
$. Ajax ({
Type: "post",
Url:/headers/findPersonInfo,
Data: {" userName ": the userName},
Datatype: "json",
Success: the function (data) {
Alert (enclosing user_name);
$(" # user_name "). The HTML (enclosing user_name);
$(" # user_pwd "). The HTML (enclosing password);
$(" # staff_name "). The HTML (enclosing staffName);
$(" # jobNumber "). The HTML (enclosing jobNumber);
$(" # phone_info "). The HTML (this. The phone);
}
})
})
CodePudding user response:
May be your background and reference format is wrong, no serializationCodePudding user response:
Has been solved, thank you for sharing opinions,