javascript - 关于jQuery select2
迷茫
迷茫 2017-04-11 12:34:14
[JavaScript讨论组]
-- select2
    -- css
         -- select2.css
         -- select2.min.css
    -- js
         -- select2.full.js
         -- select2.full.min.js
         -- select2.js
         -- select2.min.js

其中 select2.full.jsselect2.js有什么区别?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回复(3)
巴扎黑

一般都是用 select2.js, https://select2.github.io/ 官方首页最下面回答了你的问题。

Standard (select2.js / select2.min.js)
This is the build that most people should be using for Select2. It includes the most commonly used features.
Full (select2.full.js / select2.full.min.js)
You should only use this build if you need the additional features from Select2, like the compatibility modules or recommended includes like jquery.mousewheel

阿神

看 Github 源码中的 Gruntfile.js,有如下配置

    includes = [
        "jquery.select2",
        "almond",

        "jquery-mousewheel" // shimmed for non-full builds
    ];

    fullIncludes = [
        "jquery",

        "select2/compat/containerCss",
        "select2/compat/dropdownCss",

        "select2/compat/initSelection",
        "select2/compat/inputData",
        "select2/compat/matcher",
        "select2/compat/query",

        "select2/dropdown/attachContainer",
        "select2/dropdown/stopPropagation",

        "select2/selection/stopPropagation"
    ].concat(includes);
PHP中文网

通常用select2.min.js,除非你还要引用select2的其他的模块,比如鼠标滚轮,分页等.

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号