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

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

  •  
  •   jiandan123 · Dec 21, 2019 · 2690 views
    This topic created in 2526 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
    iNaru
    Dec 21, 2019❤️1
    1
    全局函数,直接在控制台输入 dispatch 回车,
    点击输出的内容就能跳转过去了。
    jiandan123
    jiandan123
    OP
    Dec 21, 2019
    2
    @iNaru 搞定了,感谢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1996 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 07:40 · PVG 15:40 · LAX 23:40 · JFK 02:40
    ♥ Do have faith in what you're doing.