ndndb
V2EX  ›  问与答

像这个神奇的双语对照翻译网站是怎么实现的

  •  
  •   ndndb · May 1, 2021 · 2209 views
    This topic created in 2017 days ago, the information mentioned may be changed or developed.
    支持上传静态 HTML,可以多人合作,翻译后能看到结果。翻译并排显示,同步滚动,有点优秀。

    https://yiyibooks.cn/xx/python_352/index.html
    3 replies  •  2021-12-05 19:20:39 +08:00
    sillydaddy
    sillydaddy
    May 2, 2021
    1
    确实有点优秀。
    ndndb
    ndndb
    OP
    May 8, 2021
    2
    大佬们指点一下啊,怎么搞一个类似的翻译
    liuser666
    liuser666
    Dec 5, 2021❤️1
    3
    检查一下前端代码就能看出来了,遍历带原文的节点,每个带上一个 id 标记,然后右边复制一份原文,id 改为原 id+任意字段.这样就对应上了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   527 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:26 · PVG 04:26 · LAX 12:26 · JFK 15:26
    ♥ Do have faith in what you're doing.