简体   繁体   English

获取当前的滑动条值

[英]Get current slide bar value

I was looking at 我在看

http://codepen.io/alexandercastillo/pen/JmBou/ 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>

And I was wondering how one would get the value of the slide after AFTER the user has released the left mouse click button? 我想知道在用户释放鼠标左键之后如何获得幻灯片的价值?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM