简体   繁体   中英

Get current slide bar value

I was looking at

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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