发布于 2021-04-04 06:44:53
您需要使用以下代码:-
const sel = document.querySelector('select');
sel.value = 'precipitation'; // You can change this value to whatever you want
sel.dispatchEvent(new Event('change', {'view': window,'bubbles': true}));https://stackoverflow.com/questions/66938543
复制相似问题