请问如何把ajax获取到的json数据以链接传参带值的方式带到另一个页面获取并解析?
$.ajax({type:"post",url:"../../expan/expan/getExpanInfo",data:reqObj,dataType:"text",...
$.ajax({
type: "post",
url: "../../expan/expan/getExpanInfo",
data: reqObj,
dataType: "text",
success: function(data) {
var rtnObj = eval('(' + data + ')');
var rtnFlag = rtnObj.rtnFlag;
load.close();
if (rtnFlag == '1' ) {
location.href = "service.html?orgNo=rtnObj.orgNo";
//window.open('service.html?rtnObj='+jsonString);
});
}else{
window.location.href = "../../annualassets/page/404.html?t=" + new Date().getTime();
}
}
});
这样对不对: location.href = "service.html?orgNo=rtnObj.orgNo"
在service.html页面如何获取传来的json呢 展开
type: "post",
url: "../../expan/expan/getExpanInfo",
data: reqObj,
dataType: "text",
success: function(data) {
var rtnObj = eval('(' + data + ')');
var rtnFlag = rtnObj.rtnFlag;
load.close();
if (rtnFlag == '1' ) {
location.href = "service.html?orgNo=rtnObj.orgNo";
//window.open('service.html?rtnObj='+jsonString);
});
}else{
window.location.href = "../../annualassets/page/404.html?t=" + new Date().getTime();
}
}
});
这样对不对: location.href = "service.html?orgNo=rtnObj.orgNo"
在service.html页面如何获取传来的json呢 展开
1个回答
推荐于2016-11-30
展开全部
printPreviewDialog1.PrintPreviewControl.StartPage = 0;
class Composite : Component
{
private List children = new List();
public Composite(string name) : base(name) { }
public override void Add(Component c)
{
children.Add(c);
}
public override void Remove(Component c)
{
children.Remove(c);
}
class Composite : Component
{
private List children = new List();
public Composite(string name) : base(name) { }
public override void Add(Component c)
{
children.Add(c);
}
public override void Remove(Component c)
{
children.Remove(c);
}
追问
你写的没看懂啊,不是前台接收的js代码吧
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询