<td>
<span ng-show="x.state=='已发货'" style="background-color: yellow;">{{x.state}}</span>
<input ng-show="x.state=='未发货'" style="background-color: red;" type="button" id="" value="{{x.state}}"
ng-click="x.state='已发货'"
/>
</td>
<select
ng-init="selet_pro=pdatas[0]"
ng-model="selet_pro"
ng-options="p.pro for p in pdatas"
ng-change="chage()"
>
</select>
$scope.pdatas=[
{pro:"河北",city:["河北1","河北2","河北3"]},
{pro:"河南",city:["河南1","河南2"]}];
$scope.chage=function(){
$scope.selet_c=$scope.selet_pro.city[0]
}
$scope.getVal=function(){
var p=$scope.selet_pro.pro;
alert(p);
var cc=$scope.selet_c;
alert(cc);
}