获取当前的滑动条值

时间:2015-12-31 17:01:15

标签: angularjs

我在看

http://codepen.io/alexandercastillo/pen/JmBou/

<div class="progress-box" ng-app>
  <div class="percentage-cur" ng-init="selectedRange=0">
    <span class="num">{{ selectedRange }}%</span>
  </div>
  <div class="progress-bar progress-bar-slider">
    <input class="progress-slider" type="range" min="0" max="100" ng-model="selectedRange">
    <div class="inner" ng-style="{ width: selectedRange + '%' || '0%' }"></div>
  </div>
</div>

我想知道在用户释放鼠标左键单击按钮之后如何获得幻灯片的价值?

1 个答案:

答案 0 :(得分:1)

很简单,输入类型范围更新ng-model selectedRange