页面电话量排行 应用 时间范围{{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取到的不是选择后的内容,而是初始化之时赋得空值。米琪卡哇伊 浏览 351回答 22回答
慕桂英546537
本季度本月本周event后台$scope.btnClick=function(selected){//dosth}这样就好了前台把值扔到方法里就没问题了00随时随地看视频慕课网APP 相关分类
我要回答