SOURCE

console 命令行工具 X clear

                    
>
console
$('#progressBar').bhProgressBar({
    width: 200,
    total: '200',
    showInfo: true
});
$('#getProgress').click(function() {
    var val = $('#progressBar').bhProgressBar('getProgress');
    $('#progress').text(val);
});
$('#clear').click(function() {
    $('#progressBar').bhProgressBar('setProgress', '0');
});
$('#setProgress').click(function() {
    $('#progressBar').bhProgressBar('setProgress', '200');
});
<div id="wrap">
  <button id="getProgress" class="bh-btn bh-btn-primary">获取当前进度</button>
  <button id="clear" class="bh-btn bh-btn-primary">清零</button>
  <button id="setProgress" class="bh-btn bh-btn-primary">赋值200</button>
  <div class="e2e-opt">
      <div id="progressBar" class="bh-m-8"></div>
  </div>
  <div id="progress"></div>
  <mark>
      返回状态
  </mark>
</div>
#wrap{
  margin: 16px;
}