我正在使用 Jquery 旋钮( http://anthonyterrien.com/knob/ ),它工作得很好,但不是在中间显示无量纲数字,我想用它显示单位 ei % 或 F 等...我该怎么做?
最佳答案
$("input.Measure").knob({
min: 1
max: 10
stopper: true,
readOnly: false,//if true This will Set the Knob readonly cannot click
draw: function () {
$(this.i).val(this.cv + '%') //Puts a percent after values
},
release: function (value) {
//Do something as you release the mouse
}
});
关于jquery - 如何使用 Jquery Knob 显示单位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18955708/