var strainGene = vm.detailObj.strainGene; console.log(strainGene); $(".aim-select").find("option").each(function (data) { var $this = $(this); if($this.text() == strainGene) { $this.attr("selected", true); } });
select根据text默认选中
最新推荐文章于 2022-04-17 15:00:28 发布