看起来肯定是ant-design的组件了,
<div class="ant-select-selection__rendered"><div ecid="_Route@vmt0lk_Comp@upn4fo_FormContent@g9f33k_MainLayout@kdmfyn_LayoutTr@ds2cqb@main_0_CellType@27chqt@main_4_6_FieldContent@r045n3_SelectElement@gubx9o_WeaSelect@vm269g_SelectNew@rj15to_RcSelect@8nckz1_div@xrcc1x" class="ant-select-selection-selected-value" title="4" style="display: block; opacity: 1;">4</div></div>
<input ecid="_Route@vmt0lk_Comp@upn4fo_FormContent@g9f33k_MainLayout@kdmfyn_LayoutTr@ds2cqb@main_0_CellType@27chqt@main_4_6_FieldContent@r045n3_SelectElement@gubx9o_WeaSelect@vm269g_input@ah4dw0" type="hidden" name="field221877" id="field221877" value="4">
它下面有个input的值,但是我修改Input的值,input的值变了。显示的值并不变,相关的验证也不会触发。
怎样用js来修改ant-select的值。。
原因是我要批量填表,测试一次要手动选20个select太痛苦了。用了一些表单工具都填不了这个select。