1

我有一个价格滑块,悬停时会显示幻灯片价格的“工具提示”。沿着滑块滑动时,工具提示中的值会发生变化。我想将 £ 符号添加到工具提示中的值中。我已经设法做到这一点,但£的位置需要更正,因为它目前的网站是这样的:“250£:£750”。看看我已经模拟出来的 bootply - http://bootply.com/72212

            if (this.range) {
                this.tooltipInner.text(
                    this.formater(this.value[0]) + 
                    '£ : £' + 
                    this.formater(this.value[1])
                );
4

2 回答 2

2

做这个:

this.tooltipInner.text(
   '£' + this.formater(this.value[0]) + ' : £' + this.formater(this.value[1])
);
于 2013-08-06T10:55:03.393 回答
1

也许我只是不明白这个问题,但它可以像

this.tooltipInner.text(
    '£' +
    this.formater(this.value[0]) + 
    ' : £' + 
    this.formater(this.value[1])
)

?

于 2013-08-06T10:57:00.017 回答