V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
qinghon
V2EX  ›  问与答

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

  •  
  •   qinghon · Jan 10, 2020 · 1877 views
    This topic created in 2310 days ago, the information mentioned may be changed or developed.

    如图 屏幕截图.png

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

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

    3 replies    2020-01-10 20:17:42 +08:00
    Cbdy
        1
    Cbdy  
       Jan 10, 2020 via Android
    这个叫 select
    noe132
        2
    noe132  
       Jan 10, 2020
    很明显是 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  
       Jan 10, 2020
    大概看了下,这个使用的是 markup.js 实现的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3314 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 12:55 · PVG 20:55 · LAX 05:55 · JFK 08:55
    ♥ Do have faith in what you're doing.