The default behavior for HTML select
is when the item in the select changes, it would fire a onchange
event. 但是,假设我有 3 个项目:
A
B
C
现在,当页面在浏览器中加载时,A 将可见。我希望当再次选择 A 时,应该触发 onchange。这怎么可能?
The default behavior for HTML select
is when the item in the select changes, it would fire a onchange
event. 但是,假设我有 3 个项目:
A
B
C
现在,当页面在浏览器中加载时,A 将可见。我希望当再次选择 A 时,应该触发 onchange。这怎么可能?