Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想更改 JQuery Knob 的文本。例如,我的消费率为 23%,我想将 23% 放在行中并在圈内的新行中消费。换句话说,我想在不同样式的百分比下添加(消耗)(速率16px和消耗12px的字体大小)
将此添加到您的旋钮选项中
format : function (value) { return value + '%'; }
如果您在旋钮滑块中显示 % :
换format:function(v){return v}行format:function(v){return v + "%"}
format:function(v){return v}
format:function(v){return v + "%"}
上面的行必须在 jquery.knob.min.js