2015-12-31 68 views
1

我看着獲取當前滑動條值

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

很簡單,輸入類型範圍更新ng模型selectedRange

+0

啊是啊,你說得對 警報($ scope.selectedRange); 示出了電流值 – Zypps987