我只是把參數 width: 'auto' 上的函數調用,然後它工作正常。 $('#months').select2({ width: 'auto', allowClear: false, height: '100%', });.
確定! 回上一頁