select2官網下載地址:https://github.com/select2/select2
效果圖:
1、html中引入必要文件
<link href="../plugins/select2/css/select2.min.css" rel="stylesheet" /> <script src="../plugins/jQuery/jquery.min.js"></script> <script src="../plugins/select2/js/select2.min.js"></script>
2、html中定義Select標籤
<div>