ctrlands
V2EX  ›  问与答

不懂就问,网页如何实现点击文字出现对应的英文翻译

  •  
  •   ctrlands · Jul 7, 2020 · 2059 views
    This topic created in 2167 days ago, the information mentioned may be changed or developed.
    https://angular.cn/guide/component-interaction Angular 中文文档网站是怎么实现这种点击文字内容,然后下方出现英文翻译的啊?
    2 replies    2020-07-09 09:27:12 +08:00
    cheeto
        1
    cheeto  
       Jul 7, 2020
    F12 一下就能看出来了。中英文都渲染,点击中文让英文的展示出来
    ctrlands
        2
    ctrlands  
    OP
       Jul 9, 2020
    @cheeto 数据库存的内容数据是带 html 标签的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2799 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:50 · PVG 17:50 · LAX 02:50 · JFK 05:50
    ♥ Do have faith in what you're doing.