- 百度新闻
-
是怎么回事呢?相信大家都很熟悉,
但是是怎么回事呢?下面就让小编带大家一起了解吧。
,其实就是了。
大家可能会感到很惊讶,怎么会呢?...
但事实就是这样,小编也感到非常惊讶。
那么这就是关于的事情了,大家有什么想法呢?欢迎在评论区告诉小编一起讨论哦
.topic-noun, .topic-verb, .topic {
color: red;
text-decoration: underline;
}
.link {
text-decoration: underline;
color: blue;
}
.entry {
margin-bottom: 1rem;
}
.entry .date {
color: grey;
}
.entry p {
font-size: 13px;
color: black;
}
百度体生成器
百度体是怎么回事呢?
function search(noun, verb) {
verb = verb || document.getElementById('search-query-verb').value;
noun = noun || document.getElementById('search-query-noun').value;
const topic = noun + verb;
Array.prototype.forEach.call(document.getElementsByClassName('topic-noun'), (el) => el.innerText = noun);
Array.prototype.forEach.call(document.getElementsByClassName('topic-verb'), (el) => el.innerText = verb);
Array.prototype.forEach.call(document.getElementsByClassName('topic'), (el) => el.innerText = topic);
Array.prototype.forEach.call(document.getElementsByClassName('date'), (el) => {
const date = new Date();
el.innerText = `${date.getFullYear()}年${date.getMonth()}月${date.getDate()}日`;
});
}
document.getElementById('search').onclick = () => search();
search('百度APP', '被约谈')
一键复制
编辑
Web IDE
原始数据
按行查看
历史