<ul>
<li class="arithCon">
<label for="arithType">类型:</label>
<select name="" id="arithType">
<option value="">请选择</option>
<option value="0">水果</option>
<option value="1">蔬菜</option>
</select>
<button id="backData">数据回显</button>
</li>
</ul>
<script src="./libs/jquery/jquery-3.4.1.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
var type = 1;
$("#backData").click(function(){
$.each($("#arithType option"),function(index,item){
if($(item).val() == type){
$(item).prop("selected",true)
}
})
})
</script>