1
我该怎么办财产以后这样的:天青Query.where()用或
var userId="patrick";
var finded="bob";
query.where({
userhostid: userId || finded,
});
我只需要添加查询项,其中userhostid quals到的用户ID或瑶池 谢谢!
我该怎么办财产以后这样的:天青Query.where()用或
var userId="patrick";
var finded="bob";
query.where({
userhostid: userId || finded,
});
我只需要添加查询项,其中userhostid quals到的用户ID或瑶池 谢谢!
您可以使用指定条件的作用方式:
var userId="patrick";
var finded="bob";
query.where(function(value1, value2) {
return this.userhostid == value1 || this.userhostid == value2;
}, userId, finded);
的博客文章在http://blogs.msdn.com/b/carlosfigueira/archive/2012/09/21/playing-with-the-query-object-in-read-operations-on-azure-mobile-services.aspx对在查询复杂过滤的详细信息。
男人你是我的主人!为您提供的啤酒升级! – Marlen