我有一个标签,里面有<option>
标签。当我选择任何选项并尝试进行打印时,即使我从下拉菜单中更改了值,打印预览也会显示默认值
<div class = "form__styled-select scheme-year-select">
<select id = "schemeYears" class = "form__styled-select-element scheme-year-element" v-on:change="changeYear($event)">
<option v-for = "year in schemeYears" :value = "year">{{ year }}</option>
</select></div>
打印预览不应包含默认选项。仅当我从页面中取出打印内容时,它才应包含所选值。