如何编写具有最小值和最大值以及两者之间的数字的 Javascript? (完全菜鸟,工作需要它)

问题描述 投票:0回答:0

使用这个程序,它提供了使用某种“预写”脚本的选项,因为没有更好的术语,但它也允许您编写自己的脚本。我正在尝试制作一个可以完全定制的仪表,唯一让我苦恼的是仪表本身的横杆。

For example: This gauge has a fixed Min of 0 and a Max of -75. The value inputted associated with {*Datapoint} is the number that falls between that min and max.

The end outcome would work something like this: you should be able to enter the {Min} and {Max} for the range and the {Gauge} input should be a number that falls between the two and is the value that actually changes the height of the bar of the gauge.

非常感谢任何帮助, 谢谢!

javascript java automation controls
© www.soinside.com 2019 - 2024. All rights reserved.