V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
teemoer
V2EX  ›  程序员

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

  •  
  •   teemoer · 2016-06-24 15:26:35 +08:00 · 3519 次点击
    这是一个创建于 2864 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如图: 连 alert(1) 都没弹出来呢;
    2 条回复    2016-06-24 18:16:48 +08:00
    HustLiu
        1
    HustLiu  
       2016-06-24 17:14:31 +08:00   ❤️ 1
    没看过 select2 的源码,但直观感觉是不是应该 extend($.fn.select2.defaults, {...})或者 options 之类的。。而不是直接给$.fn.select 扩展
    teemoer
        2
    teemoer  
    OP
       2016-06-24 18:16:48 +08:00
    @HustLiu 已经找到答案 如下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1152 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:01 · PVG 02:01 · LAX 11:01 · JFK 14:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.