表单验证如何让select设置为必选 <select class=”custom-select mr-sm-2″ name=”province” id=”province” required> <option value=””>请选择</option> </select> 把请选择的第一项的value设置为空即可