明显的解决方案是,只要滑块的最大值被更新,就在水平滑块上简单地设置刻度间隔,如清单3所示。
The obvious solution would be simply to set the tick spacing on the horizontal slider whenever its maximum value is updated, as shown in Listing 3.
刻度线是按规则间隔分隔的可视化指示符。
The tick marks are visual indicators that are spaced at regular intervals.
应用推荐