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.
查看第一张图像,最后一个尾随零在滑块中截断。来自后端的数据按照四舍五入的方式出现,但在滑块中未正确显示。
JSP 页面:
没有找到任何解决方案,请帮助我。
TIA
$("#slider").slider({ ticks : [0,1,2,3,4,5,6,7,8], ticks_labels: ['0.66', '0.69', '0.72', '0.74', '0.77','0.80', '0.83', '0.85'] });
我想这对你有用..定义刻度,它是相对刻度标签