<script> var tem="{$Zgoods.type_2}"; $("#type_2 option[value='"+tem+"']").attr("selected",""); //如果值一样 就选中对应的option, </script>