Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法为每个动态创建的选项添加一个 id,或者我在哪里使用动态创建的选项中的 onClick 事件。
OPTION代码没有点击事件。您需要挂钩到onchange父SELECT标签。
OPTION
onchange
SELECT