• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jiandan123
V2EX  ›  程序员

v2ex 的搜索中那个 dispatch()函数是在哪里定义的呢?

  •  
  •   jiandan123 · Dec 21, 2019 · 2378 views
    This topic created in 2343 days ago, the information mentioned may be changed or developed.

    v2ex 的搜索是表单输入框直接跳转到 google.com 搜索,感觉很好用。
    打算给我自己的网站也加一个这样的搜索。
    看了下源代码

    其中这个 dispatch()函数是在哪里定义的呢?找了半天也没找到。

    2 replies    2019-12-21 21:08:52 +08:00
    iNaru
        1
    iNaru  
       Dec 21, 2019   ❤️ 1
    全局函数,直接在控制台输入 dispatch 回车,
    点击输出的内容就能跳转过去了。
    jiandan123
        2
    jiandan123  
    OP
       Dec 21, 2019
    @iNaru 搞定了,感谢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4104 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 10:12 · PVG 18:12 · LAX 03:12 · JFK 06:12
    ♥ Do have faith in what you're doing.