前台這樣的:
value=[]
for coach in coachs
if coach.Experience >a and coach.Experience<=b
value.push coach
$scope.coachs=value
$scope.totalCount=data.TotalCount
$scope.getCoachsByExperience(a,b)
報錯:ReferenceError: a is not defined
然後現在報錯是找不到:a,b
我的想法是点击1-3年就可以列出列表了
怎麼把
??????????求大神