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

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

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