标签:
// test var selectEl = document.querySelector(‘select‘) var buttonEl = document.querySelector(‘button‘) selectEl.addEventListener(‘change‘, function() { console.log(this.value) }) buttonEl.addEventListener(‘click‘, function() { selectEl.options[1].selected = true })
js改变select的选中项不触发select的change事件
标签:
原文地址:http://www.cnblogs.com/jzm17173/p/5703588.html