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

怎么复写 select2 的 matcher 方法呢?小弟实在是无力了....

  •  
  •   teemoer · Jun 24, 2016 · 4237 views
    This topic created in 3624 days ago, the information mentioned may be changed or developed.
    如图: 连 alert(1) 都没弹出来呢;
    2 replies    2016-06-24 18:16:48 +08:00
    HustLiu
        1
    HustLiu  
       Jun 24, 2016   ❤️ 1
    没看过 select2 的源码,但直观感觉是不是应该 extend($.fn.select2.defaults, {...})或者 options 之类的。。而不是直接给$.fn.select 扩展
    teemoer
        2
    teemoer  
    OP
       Jun 24, 2016
    @HustLiu 已经找到答案 如下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4277 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:29 · PVG 13:29 · LAX 22:29 · JFK 01:29
    ♥ Do have faith in what you're doing.