静态页面 根据选择显示不同内容 这种功能叫什么

2020-01-10 20:06:05 +08:00
 qinghon

如图

看不到图的可以参考 https://mirrors.tuna.tsinghua.edu.cn/help/gitlab-runner/

一直想在自己的笔记 /文档里加入这种选择系统的功能,却一直没找到关键词,搜到的都是些无关的

1105 次点击
所在节点    问与答
3 条回复
Cbdy
2020-01-10 20:12:09 +08:00
这个叫 select
noe132
2020-01-10 20:13:08 +08:00
很明显是 JS。
https://mirrors.tuna.tsinghua.edu.cn/static/js/help.js


<script id="apt-template" type="x-tmpl-markup">
deb {{if os_name|equals>ubuntu}}https{{else}}http{{/if}}://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/{{os_name}} {{release_name}} main
</script>
liyang5945
2020-01-10 20:17:42 +08:00
大概看了下,这个使用的是 markup.js 实现的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/636961

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX