如何使用Jquery旋钮显示单位

我正在使用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 } }); 

正如Ben在jquery knob输入值中添加百分比所述 ,在最新版本(> 1.2.7)上,您可以使用格式钩子:

 $(".dial").knob({ 'format' : function (value) { return value + '%'; } });