发送的正则表达式服务器端在我的申请,我建立一个查询对象的一些东西像下面如何在流星
Object {pointType: /analog/i, _id: Object}
我试图把它保存在session变量,
Session.set("currentPointsQueryObject",queryObj);
然后在单击事件我得到这个对象
var res= Session.get("currentPointsQueryObject");
console.log(res);
但在这里我得到像下面
Object {pointType: Object, _id: Object}
同时,我也从会话变量歌厅它像
var group_id=Session.get("currentGroupId");
这是工作的罚款发送GROUP_ID服务器 (它在服务器日志显示ID)
然后,我已经尝试将其存储在全局变量中,如预期返回
像下面的点击事件
Object {pointType: /analog/i, _id: Object}
但是当我把它发给服务器侧方法(后的console.log立即线())
Meteor.call("updateGroupPoints",res,function(err,data){
console.log("updated points");
console.log(data);
});
当我在服务器控制台登录res
,它显示
{ pointType: {}, _id: { '$nin': [] } }
Althoug我在pointType
中有一些东西,它没有传递给服务器。
任何人都有想法,这是关系到存储的事情吗?
Thx的帮助,它的工作 – user1934044 2014-10-03 12:19:15