select2 Property Description

$('#select_yx').select2({

placeholder: "---- Please choose ----", // default display text.
width: "183px"
allowClear: to true, // show clear button
Language: {
noResults: function () {return "No Data ";} // search results are displayed formatted text
searching: function () {return" searching ... "} // display formatted text search process
},
// minimumResultsForSearch: -1, whether to display a search box @

Guess you like

Origin www.cnblogs.com/Anthony518/p/11258609.html