在javascript中
$('.select2').select2({
placeholder: $(this).data('placeholder')
});
以html
<select name="shippingCountyId" class="select2 form-control frontendSelectCounty" id="frontendShippingSelectCounty" data-placeholder="{{ __('common.county') }}">