定義我想讓滑塊工作,我不斷getUpdate未定義在HTMLInputElement.oninput。我想獲得一個滑塊工作,我不斷得到outputUpdate沒有在HTMLInputElement.oninput
我的HTML是:
function outputUpdate(mil) {
document.querySelector('#mileage').value = mil;
};
<input type="range" min="1" max="50" value="10" ng-model="miles" step="1" oninput="outputUpdate(value)">
<output for="fader" id="mileage">25</output>
<label for="fader">miles</label>