new Option("文本","值",true,true).后面两个true分别表示默认被选中和有效! //js默认选中 var sel = document.getElementsByClassName("project_type")[0]; sel.options.length=0;//清空 sel.options.add(new Option("请选择","0")); $.each(res,func
1. html <select ng-model="selectOrderState" style="border:none;left:0" ng-options="state.name for state in orderStates"></select> 2. js //订单状态 $scope.orderStates=[ {name:'全部',id:""}, {name:'等待审核',id:&quo