剧众
剧众
  • 发布:2016-05-26 01:55
  • 更新:2016-05-26 14:28
  • 阅读:954

如何提交对象到后台

分类:MUI

大神您好,
user.createUserByDevice=function(device,storage){
alert("in createUserByDevice");
user.initUserDevice(device);
mui.ajax(user.createUserIp,{
data:{
localdevice:localdevice,
},
dataType:"json",
type:"post",
success:function(data){
alert("success");
user.id=data["userid"];
storage.setItem("subtext_userid",user.id);
},
error:function(xhr,type,errorThrown){
alert("xxx:"+xhr);
xhr.get
console.log(type);
}
});
};
后台项目为STRUST2,SPRING,HIBERNATE
其中:localdevice是前台js对象,在后台ACTION中也有localdevice对象,是个bean.前台报err,不知道该如何排查,请求指点,谢谢。

2016-05-26 01:55 负责人:无 分享
已邀请:
holy1004

holy1004

你可以现在浏览器中试试,看一下能否达到你想要的效果。。

该问题目前已经被锁定, 无法添加新回复