去做:
var valueBeforeChange = $('select[name="inputUserRoles[]"]').val();
$('select[name="inputUserRoles[]"]').change(function(e) {
var inputUserRoles = $(this).val();
//you can compare here with value before change
...
valueBeforeChange = inputUserRoles;
});