[Solution found!] 从Select2 4.x开始,即使对于非多选择列表,它也始终返回一个数组。 var data = $('your-original-element').select2('data') alert(data[0].text); ...
確定! 回上一頁