How can I retrieve and display slider range value?(如何检索和显示滑块范围值?)
问题描述
如何从输入范围中检索和显示滑块值?
How can I retrieve and display the slider value from the input range?
我正在使用 Meteor 并且更喜欢 javascript 代码.
I am using Meteor and prefer javascript code.
javascript;
javascript;
推荐答案
引用后http://www.w3schools.com/jsref/event_oninput.asp看来您可以根据 oninput 的更改事件执行方法.
After referencing http://www.w3schools.com/jsref/event_oninput.asp it seems you can execute a method upon the change event of oninput.
以下代码检索并显示页面上的数字.
The following code retrieves and displays the numbers on the page.
client.js
流星方式:此外,您可以使用 change
eventType 并按照您的意愿进行映射.这在输入更改状态时有效.
THE METEOR WAY: Additionally, you may use the change
eventType and map it how you want. This works when an input changes state.
这篇关于如何检索和显示滑块范围值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!