jsは入力値と選択値を設定します

// 新增方法,方便Iframe调用
window.changeInputVal = function(select,val){
    $(select).val(val).trigger('input');
}
window.changeSelectOption = function(select,val){
    $(select).find(`option[value='${val}']`).attr("selected",true);
}

おすすめ

転載: blog.csdn.net/weixin_37064409/article/details/130709830