V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
qinghon
V2EX  ›  问与答

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

  •  
  •   qinghon · 2020-01-10 20:06:05 +08:00 · 1094 次点击
    这是一个创建于 1561 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如图 屏幕截图.png

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

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

    3 条回复    2020-01-10 20:17:42 +08:00
    Cbdy
        1
    Cbdy  
       2020-01-10 20:12:09 +08:00 via Android
    这个叫 select
    noe132
        2
    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
        3
    liyang5945  
       2020-01-10 20:17:42 +08:00
    大概看了下,这个使用的是 markup.js 实现的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   887 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:30 · PVG 05:30 · LAX 14:30 · JFK 17:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.