3 jquery ui 滑块连接

2022-01-24 00:00:00 slider jquery javascript

我尝试连接 3 个 jquery ui 滑块.

I try to connect 3 jquery ui sliders.

三个值的总和必须始终保持在 100,因此当一个滑块移动时,其他两个必须移动.

The sum of the 3 values must always stay at 100, so when a slider is moved the two others must moved.

我做了一些东西,它可以工作,但速度很慢:http://jsfiddle.net/vBsTR/2/

I made something, it works but it is very slow: http://jsfiddle.net/vBsTR/2/

如果您只连接一个滑块,它工作正常(尝试移动第一个):http://jsfiddle.net/tyjJx/2/

If you just connect one slider it works fine (try to move the first one): http://jsfiddle.net/tyjJx/2/

有人可以帮忙吗?谢谢!

Can anyone help please? Thanks!

推荐答案

我也在寻找这个问题的答案,最终从头开始编写它

I was looking for an answer to this as well and ended up writing it from scratch

http://jsbin.com/ojeruc/1/edit

相关文章