微件:External demands:修订间差异
跳转到导航
跳转到搜索
删除的内容 添加的内容
Cao awa将页面Widget:External demand的内容模型从“wikitext”更改为“JavaScript” |
小无编辑摘要 |
||
第1行: | 第1行: | ||
<script> |
<script> |
||
const elements = document.getElementsByClassName(" |
const elements = document.getElementsByClassName("external_demand_span"); |
||
const appendTo = document.getElementById(" |
const appendTo = document.getElementById("external_demand"); |
||
for (let i = 0; i < elements.length; i++) { |
for (let i = 0; i < elements.length; i++) { |
||
const element = elements[i]; |
const element = elements[i]; |
||
const clone= element.lastChild.cloneNode(true); |
const clone = element.lastChild.cloneNode(true); |
||
clone.style.display = 'inline'; |
|||
appendTo.appendChild(clone); |
appendTo.appendChild(clone); |
||
} |
} |
2024年4月11日 (四) 06:04的版本
<script>
const elements = document.getElementsByClassName("external_demand_span");
const appendTo = document.getElementById("external_demand");
for (let i = 0; i < elements.length; i++) {
const element = elements[i];
const clone = element.lastChild.cloneNode(true);
clone.style.display = 'inline';
appendTo.appendChild(clone);
}
</script>