问题标签 [mercuryjs]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
87 浏览

javascript - Mercury - 如何设置选项元素的“选定”属性?

如何使用Mercury / virtual-dom设置元素的selected属性?option

我尝试了以下方法,但没有selected属性出现在<option>

相反,它会导致: