阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 jQuery.nice select 中文API文档

      插件 jQuery.nice select 中文API文档 https://github.com/hernansartorio/jquery-nice-select

      jQuery Nice Select

      A lightweight jQuery plugin that replaces native select elements with customizable dropdowns.

      Usage

      Include jQuery and the plugin.

      <script src="path/to/jquery.js"></script> 
      <script src="path/to/jquery.nice-select.js"></script>
      

      Include the plugin styles, either the compiled CSS…

      <link rel="stylesheet" href="path/to/nice-select.css">
      

      …or, ideally, import the SASS source (if you use SASS) in your main stylesheet for easier customization.

      @import 'nice-select';
      

      Finally, initialize the plugin.

      $(document).ready(function() {
        $('select').niceSelect();
      });
      

      Full documentation and examples at hernansartorio.com/jquery-nice-select.

      目录
      本文目录
      目录