如果他在内部有另一个div(File Exists: true
PDF has 183 pages.
)的div,那么我如何按类(top
)检查div,以便该函数在数组中返回true或false。
bottom
我试过这个,但它只告诉我<div class="top">
<div class="bottom"></div>
</div>
<div class="top"></div>
是否包含<div class="top">
而不是<div class="bottom">
没有<div class="top">
<div class="bottom">
答案 0 :(得分:2)
您可以在没有&#34; .bottom&#34;的情况下排除&#34; .top&#34; -div&#39;使用has
- 方法:
library(tidyverse)
predicts %>% as.data.frame() %>%
gather() %>% ggplot() + geom_line(aes(x = rep(nice(seq(min(x), max(x), length.out=5)), 5), y = value, color=key))
&#13;
sapply(seq(0, 5, length.out = 15), function(k) {
predict(test, data.frame(x = seq(-20, 20, length.out = 200), z = k), type = "response")}) %>%
as.data.frame() %>% gather() %>% ggplot() +
geom_line(aes(x = rep(seq(-20, 20, length.out = 200), 15), y = value, color = key))
&#13;