一.angular(select 显示o.label取值o.value)
<select id="selectDeafultTime" style="width: 170px;float: left; margin-left: -8px;" ng-selected="changeSummaryWay(searchObject.deafultTime)"
ng-model="searchObject.deafultTime" ng-options="o.value as o.label for o in selectDeafultTime"></select>
相应的ctrl(控制器)
$scope.selectDeafultTime =
[{label:'当天', value:'today'},
{label:'最近一周', value:'nearWeek'},
{label:'本月', value:'currentMonth'},
{label:'最近一月', value:'nearMonth'},
{label:'最近三月', value:'nearThreeMonth'},
{label:'最近六个月', value:'nearSixMonth'}];
二.angular在第三方库中执行angular scope
var scope = angular.element('#from').scope();
scope.$apply(function ()
{
scope.searchObject.startTime = selectedDate;
});