更多操作
Xp00000000(留言 | 贡献) 小无编辑摘要 |
Xp00000000(留言 | 贡献) 小无编辑摘要 |
||
第1行: | 第1行: | ||
{| | {| | ||
|<html> | |- | ||
| width="100%" scope="row" colspan="2" style="text-align:center;background-color:#A9FBFF;"|<html> | |||
<script> | <script> | ||
function cycleTextData(element) { | function cycleTextData(element) { | ||
第17行: | 第18行: | ||
</div> | </div> | ||
</html> | </html> | ||
|- | |||
| width="15%" height="300px" style="text-align:center;background-color:#ABCDEF;" |<html> | |||
<script> | |||
function cycleTextData(element) { | |||
const states = JSON.parse(element.dataset.states || '["A", "B"]'); | |||
const currentIndex = parseInt(element.dataset.current || 0); | |||
const nextIndex = (currentIndex + 1) % states.length; | |||
element.textContent = states[nextIndex]; | |||
element.dataset.current = nextIndex; | |||
} | |||
</script> | |||
<div onclick="cycleTextData(this)" data-states='["4:3", "16:9"]' | |||
data-current="0" style="cursor:pointer;"> | |||
4:3 | |||
</div> | |||
</html>|| abc | |||
|} | |} |
2025年7月1日 (二) 21:50的版本
EZ 1
| |
4:3
|
abc |