<script>
var v={$menu.pid};
$("#pid option").each(function(){
if($(this).val()==v){
$(this).attr("selected", true);
}
});
</script>
<script>
var v={$menu.pid};
$("#pid option").each(function(){
if($(this).val()==v){
$(this).attr("selected", true);
}
});
</script>
转载于:https://www.cnblogs.com/bushe/p/4630228.html