我使用子查询获得以下NHibernate查询:
NHContext.Session.QueryOver<Item>()
.WithSubquery.WhereProperty(x => x.ItemId).In(QueryOver.Of<Foo>().Where(x => x.AFlag).Select(x => x.ItemId))
.WithSubquery.WhereProperty(x => x.ItemId).In(QueryOver.Of<Bar>().Where(x => x.AFlag).Select(x => x.Item))
.Future<Item>();
Run Code Online (Sandbox Code Playgroud)
这将运行以下SQL:
SELECT *
FROM item this_
WHERE this_.ItemId in (SELECT this_0_.ItemId as y0_
FROM Foo this_0_
WHERE this_0_.AFlag = 1 /* @p0 */)
and this_.ItemId in (SELECT this_0_.ItemId as y0_
FROM Bar this_0_
WHERE this_0_.AFlag = 1 /* @p0 */)
Run Code Online (Sandbox Code Playgroud)
我希望它使用OR,例如:
SELECT *
FROM item this_
WHERE this_.ItemId in (SELECT this_0_.ItemId as y0_
FROM Foo this_0_
WHERE this_0_.AFlag = 1 /* …Run Code Online (Sandbox Code Playgroud) 如果我执行jQuery(expr).change(function),那么我可以在用户对值进行更改时触发事件函数.
如果它以编程方式改变,即如果我调用jQuery(expr).val("moo"),是否有可能触发它.
或者如果一些普通的旧JavaScript改变了它的价值?
谢谢你的帮助.
这可能听起来像一个简单的问题,但我似乎无法在谷歌找到答案,可能是因为搜索术语将带来相当多的无关紧要.
我想要一个jQuery选择器来选择所有奇数表行,这些行不在<thead>中并将css类应用于它们.
table.cp-ss-grid tr:odd
Run Code Online (Sandbox Code Playgroud)
上面的选择器将正确地恢复表中的所有奇数行,但是将包括thead行(在ie上)
我如何在选择器中做一个和,例如:
table.cp-ss-grid tr:odd:not(thead)
Run Code Online (Sandbox Code Playgroud)
以上不起作用,仍然带回thead行
有任何想法吗?