页面电话量排行应用时间范围{{selected}}本季度本月本周查看范围控制器appCtrls.controller('chooseParamPhoneCallCtrl',function($scope,$state,$stateParams,localStorageService,boardService){$scope.initPage=function(){$scope.selected="";}$scope.backToPhoneCall=function(){$state.go("tab.crm-viewCrmBoardPhoneCalls");}$scope.goToAddUser=function(){varparamChoosePhoneCall={term:$scope.selected};console.debug("paramChoosePhoneCall-->>>"+angular.toJson(paramChoosePhoneCall));//localStorageService.setLocalStorage("paramChoosePhoneCall",paramChoosePhoneCall);}})如代码所示,页面加载之时初始化selected,然后将selected绑定到select,每次改变选择的内容{{selected}}中能正确显示改变后的内容,但是当点击查看范围下面的div触发goToAddUser后,在里面$scope.selected取到的不是选择后的内容,而是初始化之时赋得空值。
添加回答
举报
0/150
提交
取消